Skip to content

Instantly share code, notes, and snippets.

@thomasruiz
Last active March 3, 2017 11:02
Show Gist options
  • Save thomasruiz/f474e7733ad5b41a286c2315f1c96ebe to your computer and use it in GitHub Desktop.
Save thomasruiz/f474e7733ad5b41a286c2315f1c96ebe to your computer and use it in GitHub Desktop.
My own zsh theme
local return_code="%(?..%{$fg[red]%}%? %{$reset_color%})"
PROMPT='%{$fg[blue]%}{ %c } \
%{$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]%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment