Skip to content

Instantly share code, notes, and snippets.

@eropple
Created July 9, 2014 22:15
Show Gist options
  • Save eropple/ca318b64ffaad5907a50 to your computer and use it in GitHub Desktop.
Save eropple/ca318b64ffaad5907a50 to your computer and use it in GitHub Desktop.
MAIN_COLOR=$fg[green]
SECONDARY_COLOR=$fg[cyan]
CAPPER_COLOR=$fg[yellow]
CAPPER=$
if [[ `id -u $USER` -eq 0 ]]
then
MAIN_COLOR=$fg[red]
SECONDARY_COLOR=$fg[yellow]
CAPPER=\#
fi
# PROMPT='[%{$MAIN_COLOR%}%n%{$SECONDARY_COLOR%}@%{$MAIN_COLOR%}%m%{$reset_color%} %{$SECONDARY_COLOR%}%~%{$reset_color%}$(git_prompt_info)%{$reset_color%}]$CAPPER_COLOR$CAPPER%{$reset_color%} '
PROMPT='[%{$MAIN_COLOR%}%n%{$SECONDARY_COLOR%}@%{$MAIN_COLOR%}%m%{$reset_color%} %{$SECONDARY_COLOR%}%~%{$reset_color%}$(git_prompt_info)%{$reset_color%}]%{$CAPPER_COLOR%}$CAPPER%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX=" (%{$MAIN_COLOR%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$MAIN_COLOR%} %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment