Skip to content

Instantly share code, notes, and snippets.

@paulmars
Created September 24, 2016 22:50
Show Gist options
  • Save paulmars/5ca8320244f8dbe6b966c32c65a75cc7 to your computer and use it in GitHub Desktop.
Save paulmars/5ca8320244f8dbe6b966c32c65a75cc7 to your computer and use it in GitHub Desktop.
Zsh prompt
PROMPT='%{$fg_bold[green]%}%p%{$fg[green]%}%~ %{$fg_bold[cyan]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}'
RPROMPT='%{$fg[$NCOLOR]%}%p %{$reset_color%}'
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="yellow"; fi
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}%{$fg[yellow]%}⚡%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment