Advertisement
Guest User

My cutom Zsh theme

a guest
Aug 28th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. # A multiline prompt with username, hostname, full path, return status, git branch, git dirty status, git remote status
  2. local ret_status="%(?:%{$fg_bold[green]%}^.^:%{$fg_bold[red]%}O_O %s)"
  3.  
  4. local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
  5.  
  6. local host_color="green"
  7. if [ -n "$SSH_CLIENT" ]; then
  8. local host_color="red"
  9. fi
  10.  
  11. PROMPT='
  12. %{$fg_bold[grey]%}(${ret_status}%{$reset_color%}%{$fg_bold[grey]%})--%{$fg_bold[grey]%}(%{$reset_color%}%{$fg_bold[${host_color}]%}%n@%m%{$reset_color%}%{$fg_bold[grey]%})--(%{$reset_color%}%{$fg_bold[cyan]%}%D{%I:%M:%S}%{$fg_bold[grey]%})--(%{$reset_color%}%{$fg_bold[blue]%}%10c%{$reset_color%}%{$fg_bold[grey]%}) $(git_prompt_info) $(git_remote_status)
  13. %{$fg_bold[cyan]%}--❯%{$reset_color%} '
  14.  
  15.  
  16. RPROMPT='${return_status}%{$reset_color%}'
  17.  
  18. ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[grey]%}(%{$fg[red]%}"
  19. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  20. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[grey]%}) %{$fg[yellow]%}⚡%{$reset_color%}"
  21. ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[grey]%})"
  22. ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="%{$fg_bold[magenta]%}↓%{$reset_color%}"
  23. ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg_bold[magenta]%}↑%{$reset_color%}"
  24. ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE="%{$fg_bold[magenta]%}↕%{$reset_color%}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement