refactored color.theme.bash to fix issue with line wrap errors with osx and fixed the simple.theme.bash
parent
b4d773441b
commit
e71e59b047
|
|
@ -1,44 +1,44 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
black=$'\e[0;30m'
|
black='\[\033[0;30m\]'
|
||||||
red=$'\e[0;31m'
|
red='\[\033[0;31m\]'
|
||||||
green=$'\e[0;32m'
|
green='\[\033[0;32m\]'
|
||||||
yellow=$'\e[0;33m'
|
yellow='\[\033[0;33m\]'
|
||||||
blue=$'\e[0;34m'
|
blue='\[\033[0;34m\]'
|
||||||
purple=$'\e[0;35m'
|
purple='\[\033[0;35m\]'
|
||||||
cyan=$'\e[0;36m'
|
cyan='\[\033[0;36m\]'
|
||||||
white=$'\e[1;37m'
|
white='\[\033[1;37m\]'
|
||||||
orange=$'\e[33;40m'
|
orange='\[\033[33;40m\]'
|
||||||
|
|
||||||
bold_black=$'\e[1;30m'
|
bold_black='\[\033[1;30m\]'
|
||||||
bold_red=$'\e[1;31m'
|
bold_red='\[\033[1;31m\]'
|
||||||
bold_green=$'\e[1;32m'
|
bold_green='\[\033[1;32m\]'
|
||||||
bold_yellow=$'\e[1;33m'
|
bold_yellow='\[\033[1;33m\]'
|
||||||
bold_blue=$'\e[1;34m'
|
bold_blue='\[\033[1;34m\]'
|
||||||
bold_purple=$'\e[1;35m'
|
bold_purple='\[\033[1;35m\]'
|
||||||
bold_cyan=$'\e[1;36m'
|
bold_cyan='\[\033[1;36m\]'
|
||||||
bold_white=$'\e[1;37m'
|
bold_white='\[\033[1;37m\]'
|
||||||
bold_orange=$'\e[1;33;40m'
|
bold_orange='\[\033[1;33;40m\]'
|
||||||
|
|
||||||
underline_black=$'\e[4;30m'
|
underline_black='\[\033[4;30m\]'
|
||||||
underline_red=$'\e[4;31m'
|
underline_red='\[\033[4;31m\]'
|
||||||
underline_green=$'\e[4;32m'
|
underline_green='\[\033[4;32m\]'
|
||||||
underline_yellow=$'\e[4;33m'
|
underline_yellow='\[\033[4;33m\]'
|
||||||
underline_blue=$'\e[4;34m'
|
underline_blue='\[\033[4;34m\]'
|
||||||
underline_purple=$'\e[4;35m'
|
underline_purple='\[\033[4;35m\]'
|
||||||
underline_cyan=$'\e[4;36m'
|
underline_cyan='\[\033[4;36m\]'
|
||||||
underline_white=$'\e[4;37m'
|
underline_white='\[\033[4;37m\]'
|
||||||
underline_orange=$'\e[4;33;40m'
|
underline_orange='\[\033[4;33;40m\]'
|
||||||
|
|
||||||
background_black=$'\e[40m'
|
background_black='\[\033[40m\]'
|
||||||
background_red=$'\e[41m'
|
background_red='\[\033[41m\]'
|
||||||
background_green=$'\e[42m'
|
background_green='\[\033[42m\]'
|
||||||
background_yellow=$'\e[43m'
|
background_yellow='\[\033[43m\]'
|
||||||
background_blue=$'\e[44m'
|
background_blue='\[\033[44m\]'
|
||||||
background_purple=$'\e[45m'
|
background_purple='\[\033[45m\]'
|
||||||
background_cyan=$'\e[46m'
|
background_cyan='\[\033[46m\]'
|
||||||
background_white=$'\e[47m'
|
background_white='\[\033[47m\]'
|
||||||
|
|
||||||
|
|
||||||
normal=$'\e[00m'
|
normal='\[\033[00m\]'
|
||||||
reset_color=$'\e[39m'
|
reset_color='\[\033[39m\]'
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,8 @@ case $TERM in
|
||||||
TITLEBAR=""
|
TITLEBAR=""
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
PROMPT="${TITLEBAR}${orange}${reset_color}${green}\w${bold_blue}\[\$(scm_prompt_info)\]${reset_color} "
|
PROMPT="${TITLEBAR}${reset_color}${bold_green}\w${bold_blue}\$(scm_prompt_info)${reset_color} "
|
||||||
|
|
||||||
|
# scm theming
|
||||||
# scm themeing
|
|
||||||
SCM_THEME_PROMPT_DIRTY=" ✗"
|
|
||||||
SCM_THEME_PROMPT_CLEAN=" ✓"
|
|
||||||
SCM_THEME_PROMPT_PREFIX="("
|
SCM_THEME_PROMPT_PREFIX="("
|
||||||
SCM_THEME_PROMPT_SUFFIX=")"
|
SCM_THEME_PROMPT_SUFFIX=")"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue