Skip to content

Instantly share code, notes, and snippets.

@jmaicher
Created December 1, 2012 08:16
Show Gist options
  • Save jmaicher/4181077 to your computer and use it in GitHub Desktop.
Save jmaicher/4181077 to your computer and use it in GitHub Desktop.
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="white"; fi
PROMPT='%{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(git_prompt_info)$(svn_prompt_info)%(!.#.») '
RPROMPT='[%*]'
# git prompt styling
ZSH_THEME_GIT_PROMPT_PREFIX="[git:%{$fg_bold[white]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}] "
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡%{$reset_color%}] "
# svn prompt styling
ZSH_THEME_SVN_PROMPT_PREFIX="[svn:%{$fg_bold[cyan]%}"
ZSH_THEME_SVN_PROMPT_SUFFIX=""
ZSH_THEME_SVN_PROMPT_CLEAN="%{$reset_color%}] "
ZSH_THEME_SVN_PROMPT_DIRTY=" %{$fg[red]%}⚡%{$reset_color%}] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment