This commit is contained in:
jyny 2015-06-11 14:12:09 +08:00
commit 7c7ab9c58d

16
themes/jyny.zsh-theme Normal file
View file

@ -0,0 +1,16 @@
ZSH_THEME_GIT_PROMPT_PREFIX=" [ Git:%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{$reset_color%}]"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"
ZSH_THEME_GIT_PROMPT_CLEAN=""
local ret_status="%(?:%{$fg_bold[green]%}» %{$reset_color%}:%{$fg_bold[red]%}» %{$reset_color%}"
local face_status="%(?:%{$fg_bold[green]%}ヾ(●´∀`*) :%{$fg_bold[red]%}Σ( ° Д °||%)︴)"
function prompt_char {
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
}
PROMPT='%(?,,%{$fg[red]%}FAIL : $?%{$reset_color%})
《 %{$fg_bold[blue]%}%~%{$reset_color%} 》%{$fg[magenta]%}%n%{$reset_color%} @ %{$fg[yellow]%}%m%{$reset_color%}$(git_prompt_info)
%_$(prompt_char)${ret_status}'
RPROMPT='${face_status}%{$reset_color%}[%*]'