From a94d31055eeec0331a1c69e6ebd668f4c665df8f Mon Sep 17 00:00:00 2001 From: eqingti Date: Thu, 8 Jan 2015 09:59:13 +0800 Subject: [PATCH] Add simplified theme haichong20 --- themes/haichong20.zsh-theme | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 themes/haichong20.zsh-theme diff --git a/themes/haichong20.zsh-theme b/themes/haichong20.zsh-theme new file mode 100755 index 000000000..b35b197fa --- /dev/null +++ b/themes/haichong20.zsh-theme @@ -0,0 +1,30 @@ +# ------------------------------------------------------------------------ +# Jack Li oh-my-zsh theme +# (Needs Git plugin for current_branch method) +# ------------------------------------------------------------------------ + +# Color shortcuts +RED=$fg[red] +YELLOW=$fg[yellow] +GREEN=$fg[green] +WHITE=$fg[white] +BLUE=$fg[blue] +RED_BOLD=$fg_bold[red] +YELLOW_BOLD=$fg_bold[yellow] +GREEN_BOLD=$fg_bold[green] +WHITE_BOLD=$fg_bold[white] +BLUE_BOLD=$fg_bold[blue] +RESET_COLOR=$reset_color + +# Format for git_prompt_ahead() +ZSH_THEME_GIT_PROMPT_AHEAD=" %{$RED%}(!)" + +# Format for git_prompt_long_sha() and git_prompt_short_sha() +ZSH_THEME_GIT_PROMPT_SHA_BEFORE=" %{$WHITE%}[%{$YELLOW%}" +ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$WHITE%}]" + +# Prompt format +PROMPT=' +%{$RED%}[%T][zsh]%{$RESET_COLOR%} %{$GREEN_BOLD%}%n%{$WHITE%}: %{$YELLOW%}%~%u%{$RESET_COLOR%} +%{$GREEN%}$%{$RESET_COLOR%} ' +RPROMPT='%{$GREEN_BOLD%}$(current_branch)$(git_prompt_short_sha)%{$RESET_COLOR%}'