test
parent
1689da132b
commit
b503005ea6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue