Skip to content

Instantly share code, notes, and snippets.

@encodes1
Created August 17, 2012 15:17
Show Gist options
  • Save encodes1/3379775 to your computer and use it in GitHub Desktop.
Save encodes1/3379775 to your computer and use it in GitHub Desktop.
zsh theme
ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg_bold[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}]"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*"
ZSH_THEME_GIT_PROMPT_CLEAN=""
function prompt_char {
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
}
PROMPT='%(?, ,%{$fg[red]%}FAIL: $?%{$reset_color%}
)
%{$fg_bold[green]%}%n%{$reset_color%}@%{$fg_bold[blue]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)'
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment