Skip to content

Instantly share code, notes, and snippets.

@dashmug
Created June 2, 2014 20:58
Show Gist options
  • Save dashmug/d690488d8b44d4e8c147 to your computer and use it in GitHub Desktop.
Save dashmug/d690488d8b44d4e8c147 to your computer and use it in GitHub Desktop.
My custom oh-my-zsh theme. Place inside custom.
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%} git:"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_HG_PROMPT_PREFIX="%{$fg[green]%} hg:"
ZSH_THEME_HG_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_HG_PROMPT_DIRTY=" %{$fg[red]%}⚡"
ZSH_THEME_HG_PROMPT_CLEAN=""
function prompt_char {
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
}
PROMPT='%(?, ,%{$fg[red]%}FAIL: $?%{$reset_color%}
)
$(virtualenv_prompt_info)%{$fg[blue]%}%~%{$reset_color%}$(git_prompt_info)$(hg_prompt_info)%{$reset_color%}
%_$(prompt_char) '
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment