mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
27 lines
799 B
Bash
27 lines
799 B
Bash
#! bash oh-my-bash.module
|
|
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
|
|
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
|
|
SCM_THEME_PROMPT_PREFIX=" |"
|
|
SCM_THEME_PROMPT_SUFFIX="${green}|"
|
|
|
|
GIT_THEME_PROMPT_DIRTY=" ${red}✗"
|
|
GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓"
|
|
GIT_THEME_PROMPT_PREFIX=" ${green}|"
|
|
GIT_THEME_PROMPT_SUFFIX="${green}|"
|
|
|
|
RVM_THEME_PROMPT_PREFIX="|"
|
|
RVM_THEME_PROMPT_SUFFIX="|"
|
|
|
|
function _omb_theme_PROMPT_COMMAND() {
|
|
if [ $? -eq 0 ]; then
|
|
status=❤️
|
|
else
|
|
status=💔
|
|
fi
|
|
PS1="\n${yellow}$(_omb_prompt_print_ruby_env) ${purple}\h ${reset_color}in ${green}\w $status \n${bold_cyan} ${blue}|$(clock_prompt)|${green}$(scm_prompt_info) ${green}→${reset_color} "
|
|
}
|
|
|
|
THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$blue"}
|
|
|
|
_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
|