You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
518 B
16 lines
518 B
14 years ago
|
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
|
||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||
14 years ago
|
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"
|
||
14 years ago
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||
|
|
||
|
function prompt_char {
|
||
|
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
|
||
|
}
|
||
|
|
||
14 years ago
|
PROMPT='%(?, ,%{$fg[red]%}FAIL: $?%{$reset_color%}
|
||
14 years ago
|
)
|
||
|
%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info)
|
||
14 years ago
|
%_$(prompt_char) '
|
||
14 years ago
|
|
||
|
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
|