8f8767a566b24ba62cfa73a7aa4b12a95a1af285

Author
Douglas Creager <douglas.creager@redjack.com>
Committer
Douglas Creager <douglas.creager@redjack.com>
Date

Message

blinks theme works with light and dark Solarized

The blinks theme now looks good if you're using the light version of the
Solarized color scheme, too.  It still defaults to the dark version, so
it should work as before if you don't override things.  If you're using
the light version, just set SOLARIZED_THEME to "light" before sourcing
oh-my-zsh.

Diff

 1diff --git a/themes/blinks.zsh-theme b/themes/blinks.zsh-theme
 2index 3db7012f4b0be2befebfa926184cee55e1744b00..ddb32f7c37fc92b0f927381a001f7ff14cb8f549 100644
 3--- a/themes/blinks.zsh-theme
 4+++ b/themes/blinks.zsh-theme
 5@@ -8,13 +8,23 @@ function _prompt_char() {
 6   fi
 7 }
 8 
 9+# This theme works with both the "dark" and "light" variants of the
10+# Solarized color schema.  Set the SOLARIZED_THEME variable to one of
11+# these two values to choose.  If you don't specify, we'll assume you're
12+# using the "dark" variant.
13+
14+case ${SOLARIZED_THEME:-dark} in
15+    light) bkg=white;;
16+    *)     bkg=black;;
17+esac
18+
19 ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{blue}%}"
20-ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%K{black}%B%F{green}%}]"
21+ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%K{${bkg}}%B%F{green}%}]"
22 ZSH_THEME_GIT_PROMPT_DIRTY=" %{%F{red}%}*%{%f%k%b%}"
23 ZSH_THEME_GIT_PROMPT_CLEAN=""
24 
25 PROMPT='%{%f%k%b%}
26-%{%K{black}%B%F{green}%}%n%{%B%F{blue}%}@%{%B%F{cyan}%}%m%{%B%F{green}%} %{%b%F{yellow}%K{black}%}%~%{%B%F{green}%}$(git_prompt_info)%E%{%f%k%b%}
27-%{%K{black}%}$(_prompt_char)%{%K{black}%} %#%{%f%k%b%} '
28+%{%K{${bkg}}%B%F{green}%}%n%{%B%F{blue}%}@%{%B%F{cyan}%}%m%{%B%F{green}%} %{%b%F{yellow}%K{${bkg}}%}%~%{%B%F{green}%}$(git_prompt_info)%E%{%f%k%b%}
29+%{%K{${bkg}}%}$(_prompt_char)%{%K{${bkg}}%} %#%{%f%k%b%} '
30 
31 RPROMPT='!%{%B%F{cyan}%}%!%{%f%k%b%}'