ohmyzsh/themes/kaffeefleck.zsh-theme
Michael Contento b323d92d36 Theme kaffeefleck now compatible with miloshadzic
* Flag for the root prefix: ZSH_THEME_PREFIX_ROOT
* Flag for the RPROMPT: ZSH_THEME_USE_RPROMPT
2011-10-25 17:23:50 +02:00

20 lines
747 B
Bash

ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
local directory="%{$fg[cyan]%}%1~%{$reset_color%}"
local left_delimiter="%{$fg[red]%}|%{$reset_color%}"
local right_delimiter=" %{$fg[cyan]%}⇒%{$reset_color%} "
if [[ "$ZSH_THEME_PREFIX_ROOT" != "" && "$UID" -eq 0 ]]; then
local root_prefix="%{$fg[red]%}♚ %{$reset_color%}"
else
local root_prefix=""
fi
PROMPT='${root_prefix}${directory}${left_delimiter}$(git_prompt_info)${right_delimiter}'
if [ "$ZSH_THEME_USE_RPROMPT" != "" ]; then
local return_code="%(?..%{$fg[red]%}%?%{$reset_color%})"
RPROMPT='${return_code}'
fi