re5et.zsh-theme 684 B

123456789101112131415
  1. if [ "$(whoami)" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="magenta"; fi
  2. local return_code="%(?..%{$fg_bold[red]%}:( %?%{$reset_color%})"
  3. PROMPT='
  4. %{$fg_bold[cyan]%}%n%{$reset_color%}%{$fg[yellow]%}@%{$reset_color%}%{$fg_bold[blue]%}%m%{$reset_color%}:%{${fg_bold[green]}%}%~%{$reset_color%}$(git_prompt_info)
  5. %{${fg[$CARETCOLOR]}%}%# %{${reset_color}%}'
  6. RPS1='${return_code} %D - %*'
  7. ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[magenta]%}^%{$reset_color%}%{$fg_bold[yellow]%}"
  8. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  9. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%} ±"
  10. ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ?"
  11. ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[red]%} ♥"