From 7c7ab9c58d46727c724523553cc39c74ffd8f97c Mon Sep 17 00:00:00 2001 From: jyny Date: Thu, 11 Jun 2015 14:12:09 +0800 Subject: [PATCH] cute and useful themes, https://github.com/Jyny/jyny.zsh-theme --- themes/jyny.zsh-theme | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 themes/jyny.zsh-theme diff --git a/themes/jyny.zsh-theme b/themes/jyny.zsh-theme new file mode 100644 index 000000000..93c593c99 --- /dev/null +++ b/themes/jyny.zsh-theme @@ -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%}[%*]'