my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
652 B

3 years ago
  1. if [ "$USERNAME" = "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