amuse.zsh-theme 748 B

1234567891011121314151617181920212223242526272829
  1. # vim:ft=zsh ts=2 sw=2 sts=2
  2. rvm_current() {
  3. rvm current 2>/dev/null
  4. }
  5. rbenv_version() {
  6. rbenv version 2>/dev/null | awk '{print $1}'
  7. }
  8. PROMPT='
  9. %{$fg_bold[green]%}%~%{$reset_color%}$(git_prompt_info) ⌚ %{$fg_bold[red]%}%*%{$reset_color%}
  10. $ '
  11. # Must use Powerline font, for \uE0A0 to render.
  12. ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}\uE0A0 "
  13. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  14. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!"
  15. ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
  16. ZSH_THEME_GIT_PROMPT_CLEAN=""
  17. if [ -e ~/.rvm/bin/rvm-prompt ]; then
  18. RPROMPT='%{$fg_bold[red]%}‹$(rvm_current)›%{$reset_color%}'
  19. else
  20. if which rbenv &> /dev/null; then
  21. RPROMPT='%{$fg_bold[red]%}$(rbenv_version)%{$reset_color%}'
  22. fi
  23. fi