pull/160/head
Vaidas Zilionis 2014-01-18 19:49:09 +02:00
parent 1689da132b
commit b503005ea6
6 changed files with 19 additions and 10 deletions

0
dircolors/solarized.256dark 100644 → 100755
View File

0
dircolors/solarized.ansi-dark 100644 → 100755
View File

0
dircolors/solarized.ansi-light 100644 → 100755
View File

View File

View File

@ -8,14 +8,14 @@ export GREP_COLOR='1;33'
export LSCOLORS='Gxfxcxdxdxegedabagacad'
# colored ls
if [[ ! -z $(which dircolors) ]]
then
export DIRCOLORS_COMMAND=dircolors
elif [[ ! -z $(which gdircolors) ]]
then
export DIRCOLORS_COMMAND=gdircolors
fi
eval `$DIRCOLORS_COMMAND $BASH_IT/dircolors/$LS_THEME`
#if [[ ! -z $(which dircolors) ]]
#then
# export DIRCOLORS_COMMAND=dircolors
#elif [[ ! -z $(which gdircolors) ]]
#then
# export DIRCOLORS_COMMAND=gdircolors
#fi
#eval `$DIRCOLORS_COMMAND $BASH_IT/dircolors/$LS_THEME`
# Load the theme

View File

@ -43,12 +43,21 @@ function zuper_scm_prompt_info {
[[ $SCM == $SCM_SVN ]] && svn_prompt_info && return
}
PROMPT_END_CLEAN="${green}${reset_color}"
PROMPT_END_DIRTY="${red}${reset_color}"
function prompt_end() {
echo -e "$PROMPT_END"
}
prompt() {
# » ➜
# » ➜
local exit_status=$?
if [[ $exit_status -eq 0 ]]; then PROMPT_END=$PROMPT_END_CLEAN
else PROMPT_END=$PROMPT_END_DIRTY
fi
local my_branch="$(zuper_scm_prompt_info)"
PS1="${white}\n[${yellow} \u@\H ${red}\t${white} ] ${green}\w${my_branch}\n${white}»${normal} "
PS1="${white}\n[${yellow} \u@\H ${red}\t${white} ] ${green}\w${my_branch}\n$(prompt_end) "
}
PROMPT_COMMAND=prompt