amuse.zsh-theme 551 B

123456789101112131415161718192021
  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]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) ⌚ %{$fg_bold[red]%}%*%{$reset_color%}
  10. $ '
  11. ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}⭠ "
  12. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  13. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!"
  14. ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
  15. ZSH_THEME_GIT_PROMPT_CLEAN=""
  16. RPROMPT='%{$fg_bold[red]%}$(rbenv_version)%{$reset_color%}'