zhann.zsh-theme 616 B

123456789101112131415
  1. PROMPT='%{$fg_bold[green]%}%p %{$fg[cyan]%}%c%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
  2. if which rvm-prompt &> /dev/null; then
  3. RPROMPT='%{$reset_color%} %{$fg[red]%}$(~/.rvm/bin/rvm-prompt i v g) %{$reset_color%}'
  4. else
  5. if which rbenv &> /dev/null; then
  6. RPROMPT='%{$reset_color%} %{$fg[red]%}$(rbenv version | sed -e "s/ (set.*$//") %{$reset_color%}'
  7. fi
  8. fi
  9. ZSH_THEME_GIT_PROMPT_PREFIX=" (%{$fg[red]%}"
  10. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  11. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
  12. ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"