Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 17 lines (12 sloc) 0.523 kB
36f1f4e @DarkOtter Add my oh-my-zsh theme
DarkOtter authored
1
2 ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
3 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
4 ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!"
5 ZSH_THEME_GIT_PROMPT_CLEAN=""
6
7 function prompt_char {
8 if [ "$(whoami)" = "root" ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
9 }
10
11 PROMPT='%(?, ,%{$fg[red]%}FAIL%{$reset_color%}
12 )
13 %{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)
14 %_ $(prompt_char) '
15
16 RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
Something went wrong with that request. Please try again.