dpoggi.zsh-theme 580 B

1234567891011121314
  1. if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
  2. local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
  3. PROMPT='%{$fg[$NCOLOR]%}%n%{$reset_color%}@%{$fg[cyan]%}%m\
  4. %{$reset_color%}:%{$fg[magenta]%}%~\
  5. $(git_prompt_info) \
  6. %{$fg[red]%}%(!.#.»)%{$reset_color%} '
  7. PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
  8. RPS1='${return_code}'
  9. ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}("
  10. ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}○%{$reset_color%}"
  11. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}⚡%{$reset_color%}"
  12. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%})%{$reset_color%}"