flazz.zsh-theme 652 B

12345678910111213141516171819
  1. if [ "$(whoami)" = "root" ]
  2. then CARETCOLOR="red"
  3. else CARETCOLOR="blue"
  4. fi
  5. local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
  6. PROMPT='%m%{${fg_bold[magenta]}%} :: %{$reset_color%}%{${fg[green]}%}%3~ $(git_prompt_info)%{${fg_bold[$CARETCOLOR]}%}%#%{${reset_color}%} '
  7. RPS1='$(vi_mode_prompt_info) ${return_code}'
  8. ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[cyan]%}‹"
  9. ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
  10. MODE_INDICATOR="%{$fg_bold[magenta]%}<%{$reset_color%}%{$fg[magenta]%}<<%{$reset_color%}"
  11. # TODO use 265 colors
  12. #MODE_INDICATOR="$FX[bold]$FG[020]<$FX[no_bold]%{$fg[blue]%}<<%{$reset_color%}"
  13. # TODO use two lines if git