"lib" has used the variables "red", "green", "yellow", "blue", and
"purple" for outputting logs to stdout/stderr. On the other hand,
"themes" has used the same variables for including escape sequences in
PS1. These two sets of variables have different values, i.e., the
latter is enclosed by '\[' and '\]' and contains escaped '\e', which
means that there have been variable conflicts. In this commit, more
specific variables are used in these places to resolve the conflicts.
Evaluate lesspipe output only when LESSOPEN isn't already defined
unless we are on gentoo distribution then export LESSOPEN directly.
Check lesspipe scriptname (lesspipe/lesspipe.sh)
Issue #46#69
"fpath" array is the feature of Zsh, to which there are no equivalent
in Bash. Also, the current initialization code for "fpath" is broken;
$fpath is not expanded to the array elements but to the 0-th element
in Bash, so that only the last two paths are retained in the "fpath"
array. Actually, oh-my-bash currently does not have any "fpath"
functions, so we can just safely remove the initialization code for
"fpath".
In case that some external scripts use the existing functions for
"fpath" initialization, we move the functions to
"lib/omb-deprecated.sh".
Previously, only the first element of the array was expanded, which is
always the empty string, so the setting of GREP_OPTIONS was useless. Expand
the entire array.
* OMB - Major Refactor
- Aliases and completions now works like plugins (need to enabled in .bashrc)
- Removed the compatible check in spectrum.sh, OMB now works with Bash v3.x like the old days.
- Removed core plugin, added those bash functions into base.sh and load during startup.
- Updated OSH template for new installations
- Added history config and few other stuff from #17
@TODO: Added a shell script to update old version of .bashrc to new one.
* Fixed ShellCheck issues
* Fixed ShellCheck issues
Since spectrum.sh was copied from zsh, the typeset -A used is zsh specific and in bash4, it is declare -A. I've fixed it and I've added a check to error out with a readable message, in red color, to tell the user to upgrade bash.
- Fixed LSCOLORS from theme-and-appearance.sh
- Fixed ii() command in core plugin
- Stop using .bashrc as Oh-My-Bash profile, use .bash_profile instead
- Automate backport new version for old version users
- Added .editorconfig for future contribution