Parent directory

blinks.zsh-theme

975 bytes
 1# https://github.com/blinks zsh theme
 2
 3function _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 neither variant.
15
16case ${SOLARIZED_THEME:-dark} in
17    light) bkg=white;;
18    *)  bkg=default;;
19esac
20
21ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{blue}%}"
22ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%K{${bkg}}%B%F{green}%}]"
23ZSH_THEME_GIT_PROMPT_DIRTY=" %{%F{red}%}*%{%f%k%b%}"
24ZSH_THEME_GIT_PROMPT_CLEAN=""
25
26PROMPT='%{%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
30RPROMPT='!%{%B%F{cyan}%}%!%{%f%k%b%}'