Not for normies
| 1 | # https://github.com/blinks zsh theme |
| 2 | |
| 3 | function _prompt_char() { |
| 4 | if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then |
| 5 | echo "%{%F{blue}%}±%{%f%k%b%}" |
| 6 | else |
| 7 | echo ' ' |
| 8 | fi |
| 9 | } |
| 10 | |
| 11 | # This theme works with both the "dark" and "light" variants of the |
| 12 | # Solarized color schema. Set the SOLARIZED_THEME variable to one of |
| 13 | # these two values to choose. If you don't specify, we'll assume you're |
| 14 | # using the "dark" variant. |
| 15 | |
| 16 | case ${SOLARIZED_THEME:-dark} in |
| 17 | light) bkg=white;; |
| 18 | *) bkg=black;; |
| 19 | esac |
| 20 | |
| 21 | ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{blue}%}" |
| 22 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%K{${bkg}}%B%F{green}%}]" |
| 23 | ZSH_THEME_GIT_PROMPT_DIRTY=" %{%F{red}%}*%{%f%k%b%}" |
| 24 | ZSH_THEME_GIT_PROMPT_CLEAN="" |
| 25 | |
| 26 | PROMPT='%{%f%k%b%} |
| 27 | %{%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%} |
| 28 | %{%K{${bkg}}%}$(_prompt_char)%{%K{${bkg}}%} %#%{%f%k%b%} ' |
| 29 | |
| 30 | RPROMPT='!%{%B%F{cyan}%}%!%{%f%k%b%}' |