From 04c9eeae874fe3a2d530c12518b3516a1265c137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Je=CC=81re=CC=81my=20Romey?= Date: Fri, 13 Jul 2012 23:27:50 +0200 Subject: [PATCH] Better contrast for right side & better git status --- powerline.zsh-theme | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/powerline.zsh-theme b/powerline.zsh-theme index 3cb4c69..dd7b7ac 100644 --- a/powerline.zsh-theme +++ b/powerline.zsh-theme @@ -1,12 +1,33 @@ # FreeAgent puts the powerline style in zsh ! + +POWERLINE_COLOR_BG_GRAY=$BG[240] +POWERLINE_COLOR_BG_LIGHT_GRAY=$BG[240] +POWERLINE_COLOR_BG_WHITE=$BG[255] + +POWERLINE_COLOR_FG_GRAY=$FG[240] +POWERLINE_COLOR_FG_LIGHT_GRAY=$FG[240] +POWERLINE_COLOR_FG_WHITE=$FG[255] + +GIT_DIRTY_COLOR=$FG[133] +GIT_CLEAN_COLOR=$FG[118] +GIT_PROMPT_INFO=$FG[012] + ZSH_THEME_GIT_PROMPT_PREFIX=" \u2b60 " -ZSH_THEME_GIT_PROMPT_SUFFIX="" -ZSH_THEME_GIT_PROMPT_DIRTY=" δ" -ZSH_THEME_GIT_PROMPT_CLEAN="" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%}" +ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘" +ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔" + +ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}" + PROMPT=' '%{$bg[green]%}%{$fg[black]%}' '%n' '%{$reset_color%}%{$fg[green]%}%{$bg[blue]%}$'\u2b80'%{$reset_color%}%{$fg[white]%}%{$bg[blue]%}' '%1~$'$(git_prompt_info) '%{$reset_color%}%{$fg[blue]%}$'\u2b80%{$reset_color%} ' -RPROMPT=%F{white}$' \u2b82%{$reset_color%}%{$bg[white]%} %F{gray}%D{%X}% \u2b83 %D{%Y-%m-%e}%f %{$reset_color%}' +RPROMPT=%{$POWERLINE_COLOR_FG_WHITE%}$' \u2b82%{$reset_color%}%{$POWERLINE_COLOR_BG_WHITE%} %{$POWERLINE_COLOR_FG_GRAY%}%D{%X}% \u2b82%{$POWERLINE_COLOR_BG_GRAY%}%{$POWERLINE_COLOR_FG_WHITE%} %D{%Y-%m-%e}%f %{$reset_color%}'