dinolupo
3/17/2017 - 12:58 PM

oh-my-zsh theme optimized for babun on windows (works well even on slow machines)

oh-my-zsh theme optimized for babun on windows (works well even on slow machines)

# put in ~/.oh-my-zsh/custom
# and choose ZSH_THEME="dino-babun" in ~/.zshrc

local return_code="%(?..%{$fg[red]%}%? %{$reset_color%})"

PROMPT='%{$fg[blue]%}%~%{$reset_color%} \
%{$fg[green]%}$(  git rev-parse --abbrev-ref HEAD 2> /dev/null || echo ""  )%{$reset_color%} \
%{$fg[red]%}%(!.#.»)%{$reset_color%}
$ '

PROMPT2='%{$fg[red]%}\ %{$reset_color%}'

#RPS1='%{$fg[blue]%}%~%{$reset_color%} ${return_code} '

ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}:: %{$fg[yellow]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$fg[yellow]%}"