2014-03-08 18:51:16 +01:00
|
|
|
# kphoen.zsh-theme
|
2011-03-07 15:15:46 +01:00
|
|
|
|
|
|
|
if [[ "$TERM" != "dumb" ]] && [[ "$DISABLE_LS_COLORS" != "true" ]]; then
|
2019-12-19 03:07:30 +01:00
|
|
|
PROMPT='[%F{red}%n%f@%F{magenta}%m%f:%F{blue}%~%f$(git_prompt_info)]
|
2011-03-07 15:15:46 +01:00
|
|
|
%# '
|
|
|
|
|
2019-12-19 03:07:30 +01:00
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX=" on %F{green}"
|
|
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%f"
|
2011-03-07 15:15:46 +01:00
|
|
|
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
|
|
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
|
|
|
|
|
|
# display exitcode on the right when >0
|
2019-12-19 03:07:30 +01:00
|
|
|
return_code="%(?..%F{red}%? ↵%f)"
|
2011-03-07 15:15:46 +01:00
|
|
|
|
2019-12-19 03:07:30 +01:00
|
|
|
RPROMPT='${return_code}$(git_prompt_status)%f'
|
2011-03-07 15:15:46 +01:00
|
|
|
|
2019-12-19 03:07:30 +01:00
|
|
|
ZSH_THEME_GIT_PROMPT_ADDED="%F{green} ✚"
|
|
|
|
ZSH_THEME_GIT_PROMPT_MODIFIED="%F{blue} ✹"
|
|
|
|
ZSH_THEME_GIT_PROMPT_DELETED="%F{red} ✖"
|
|
|
|
ZSH_THEME_GIT_PROMPT_RENAMED="%F{magenta} ➜"
|
|
|
|
ZSH_THEME_GIT_PROMPT_UNMERGED="%F{yellow} ═"
|
|
|
|
ZSH_THEME_GIT_PROMPT_UNTRACKED="%F{cyan} ✭"
|
2011-03-07 15:15:46 +01:00
|
|
|
else
|
|
|
|
PROMPT='[%n@%m:%~$(git_prompt_info)]
|
|
|
|
%# '
|
|
|
|
|
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX=" on"
|
|
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
|
|
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
|
|
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
|
|
|
|
|
|
# display exitcode on the right when >0
|
|
|
|
return_code="%(?..%? ↵)"
|
|
|
|
|
|
|
|
RPROMPT='${return_code}$(git_prompt_status)'
|
|
|
|
|
|
|
|
ZSH_THEME_GIT_PROMPT_ADDED=" ✚"
|
|
|
|
ZSH_THEME_GIT_PROMPT_MODIFIED=" ✹"
|
|
|
|
ZSH_THEME_GIT_PROMPT_DELETED=" ✖"
|
|
|
|
ZSH_THEME_GIT_PROMPT_RENAMED=" ➜"
|
|
|
|
ZSH_THEME_GIT_PROMPT_UNMERGED=" ═"
|
|
|
|
ZSH_THEME_GIT_PROMPT_UNTRACKED=" ✭"
|
|
|
|
fi
|