Skip to content

Instantly share code, notes, and snippets.

@YOzaz
Created August 11, 2016 06:16
Show Gist options
  • Save YOzaz/608eea5dcaefd0ef6bc4160f18b83a9e to your computer and use it in GitHub Desktop.
Save YOzaz/608eea5dcaefd0ef6bc4160f18b83a9e to your computer and use it in GitHub Desktop.
local return_code="%(?..%{$FG[209]%}%? %{$reset_color%})"
PROMPT='%{$FG[110]%}{ %c } \
%{$FG[150]%}$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "" )%{$reset_color%} \
%{$FG[209]%}%(!.#.»)%{$reset_color%} '
PROMPT2='%{$FG[209]%}\ %{$reset_color%}'
RPS1='%{$FG[223]%}%n@%m: %{$reset_color%}\
%{$FG[110]%}%~%{$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[209]%}*%{$fg[yellow]%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment