fishy.zsh-theme 805 B

1234567891011121314151617181920
  1. # ZSH Theme emulating the Fish shell's default prompt.
  2. local user_color='green'; [ $UID -eq 0 ] && user_color='red'
  3. PROMPT='%n@%m %{$fg[$user_color]%}%~%{$reset_color%}%(!.#.>) '
  4. PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
  5. local return_status="%{$fg_bold[red]%}%(?..%?)%{$reset_color%}"
  6. RPROMPT='${return_status}$(git_prompt_info)$(git_prompt_status)%{$reset_color%}'
  7. ZSH_THEME_GIT_PROMPT_PREFIX=" "
  8. ZSH_THEME_GIT_PROMPT_SUFFIX=""
  9. ZSH_THEME_GIT_PROMPT_DIRTY=""
  10. ZSH_THEME_GIT_PROMPT_CLEAN=""
  11. ZSH_THEME_GIT_PROMPT_ADDED="%{$fg_bold[green]%}+"
  12. ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg_bold[blue]%}!"
  13. ZSH_THEME_GIT_PROMPT_DELETED="%{$fg_bold[red]%}-"
  14. ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg_bold[magenta]%}>"
  15. ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg_bold[yellow]%}#"
  16. ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[cyan]%}?"