mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
plugins/bashmarks: Use global color variables
This commit is contained in:
@@ -285,6 +285,12 @@ _omb_deprecate_function 20000 e_underline _omb_log_underline
|
||||
_omb_deprecate_function 20000 e_bold _omb_log_bold
|
||||
_omb_deprecate_function 20000 e_note _omb_log_note
|
||||
|
||||
# plugins/bashmarks/bashmarks.plugin.sh [ This anyway conflicts with
|
||||
# variables defined by themes (axin, mairan, sexy, etc.) so do not
|
||||
# define fallbacks and warnings. ]
|
||||
#_omb_deprecate_const RED "0;31m" "Please use '\${_omb_term_red:2}'."
|
||||
#_omb_deprecate_const GREEN "0;33m" "Please use '\${_omb_term_green:2}'."
|
||||
|
||||
# themes/*
|
||||
_omb_deprecate_function 20000 prompt_command _omb_theme_PROMPT_COMMAND
|
||||
_omb_deprecate_function 20000 prompt _omb_theme_PROMPT_COMMAND
|
||||
|
||||
@@ -39,9 +39,6 @@ if [ ! -n "$SDIRS" ]; then
|
||||
fi
|
||||
touch $SDIRS
|
||||
|
||||
RED="0;31m"
|
||||
GREEN="0;33m"
|
||||
|
||||
# main function
|
||||
function bm {
|
||||
option="${1}"
|
||||
@@ -125,9 +122,9 @@ function _goto_bookmark {
|
||||
if [ -d "$target" ]; then
|
||||
cd "$target"
|
||||
elif [ ! -n "$target" ]; then
|
||||
echo -e "\033[${RED}WARNING: '${1}' bashmark does not exist\033[00m"
|
||||
printf '%s\n' "${_omb_term_red}WARNING: '${1}' bashmark does not exist${_omb_term_reset}"
|
||||
else
|
||||
echo -e "\033[${RED}WARNING: '${target}' does not exist\033[00m"
|
||||
printf '%s\n' "${_omb_term_red}WARNING: '${target}' does not exist${_omb_term_reset}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user