Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 16 lines (12 sloc) 0.518 kb
6654d5d Make personal theme based on dst
Tom Kirchner authored
1 ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
2 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
e1f37e3 Sweet lightning bolt on uncommitted git changes
Tom Kirchner authored
3 ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"
6654d5d Make personal theme based on dst
Tom Kirchner authored
4 ZSH_THEME_GIT_PROMPT_CLEAN=""
5
6 function prompt_char {
7 if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
8 }
9
cb2362c Actually show return code on failure
Tom Kirchner authored
10 PROMPT='%(?, ,%{$fg[red]%}FAIL: $?%{$reset_color%}
6654d5d Make personal theme based on dst
Tom Kirchner authored
11 )
12 %{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)
92cacc9 No space before prompt char at beginning of line
Tom Kirchner authored
13 %_$(prompt_char) '
6654d5d Make personal theme based on dst
Tom Kirchner authored
14
15 RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
Something went wrong with that request. Please try again.