ohmyzsh/themes/dpoggi.zsh-theme

15 lines
418 B
Text
Raw Normal View History

2011-07-13 05:20:21 +02:00
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
local return_code="%(?..%F{red}%? ↵%f)"
2011-07-13 05:20:21 +02:00
PROMPT='%F{$NCOLOR}%n%f@%F{cyan}%m\
%f:%F{magenta}%~\
2011-07-13 05:20:21 +02:00
$(git_prompt_info) \
%F{red}%(!.#.»)%f '
PROMPT2='%F{red}\ %f'
2011-07-13 05:20:21 +02:00
RPS1='${return_code}'
ZSH_THEME_GIT_PROMPT_PREFIX="%F{yellow}("
ZSH_THEME_GIT_PROMPT_CLEAN="%F{green}○%f"
ZSH_THEME_GIT_PROMPT_DIRTY="%F{red}⚡%f"
ZSH_THEME_GIT_PROMPT_SUFFIX="%F{yellow})%f"