blinks.zsh-theme 649 B

1234567891011121314151617181920
  1. # https://github.com/blinks zsh theme
  2. function _prompt_char() {
  3. if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
  4. echo "%{%F{blue}%}±%{%f%k%b%}"
  5. else
  6. echo ' '
  7. fi
  8. }
  9. ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{blue}%}"
  10. ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%K{black}%B%F{green}%}]"
  11. ZSH_THEME_GIT_PROMPT_DIRTY=" %{%F{red}%}*%{%f%k%b%}"
  12. ZSH_THEME_GIT_PROMPT_CLEAN=""
  13. PROMPT='%{%f%k%b%}
  14. %{%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%}
  15. %{%K{black}%}$(_prompt_char)%{%K{black}%} %#%{%f%k%b%} '
  16. RPROMPT='!%{%B%F{cyan}%}%!%{%f%k%b%}'