intheloop.zsh-theme 1.0 KB

123456789101112131415161718192021222324
  1. # ZSH theme by James Smith (http://loopj.com)
  2. # A multiline prompt with username, hostname, full path, return status, git branch, git dirty status, git remote status
  3. local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
  4. local host_color="green"
  5. if [ -n "$SSH_CLIENT" ]; then
  6. local host_color="red"
  7. fi
  8. PROMPT='
  9. %{$fg_bold[grey]%}[%{$reset_color%}%{$fg_bold[${host_color}]%}%n@%m%{$reset_color%}%{$fg_bold[grey]%}]%{$reset_color%} %{$fg_bold[blue]%}%10c%{$reset_color%} $(git_prompt_info) $(git_remote_status)
  10. %{$fg_bold[cyan]%}❯%{$reset_color%} '
  11. RPROMPT='${return_status}%{$reset_color%}'
  12. ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[grey]%}(%{$fg[red]%}"
  13. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  14. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[grey]%}) %{$fg[yellow]%}⚡%{$reset_color%}"
  15. ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[grey]%})"
  16. ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="%{$fg_bold[magenta]%}↓%{$reset_color%}"
  17. ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg_bold[magenta]%}↑%{$reset_color%}"
  18. ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE="%{$fg_bold[magenta]%}↕%{$reset_color%}"