mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
e8504ac49a
that only change the foreground color. %F works at least since Zsh 4.3.
43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# kphoen.zsh-theme
|
|
|
|
if [[ "$TERM" != "dumb" ]] && [[ "$DISABLE_LS_COLORS" != "true" ]]; then
|
|
PROMPT='[%F{red}%n%f@%F{magenta}%m%f:%F{blue}%~%f$(git_prompt_info)]
|
|
%# '
|
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX=" on %F{green}"
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%f"
|
|
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
|
|
# display exitcode on the right when >0
|
|
return_code="%(?..%F{red}%? ↵%f)"
|
|
|
|
RPROMPT='${return_code}$(git_prompt_status)%f'
|
|
|
|
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} ✭"
|
|
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
|