eastwood.zsh-theme 711 B

12345678910111213141516171819
  1. #RVM settings
  2. if [[ -s ~/.rvm/scripts/rvm ]] ; then
  3. RPS1="%{$fg[yellow]%}rvm:%{$reset_color%}%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt)%{$reset_color%} $EPS1"
  4. fi
  5. ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}["
  6. ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
  7. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
  8. ZSH_THEME_GIT_PROMPT_CLEAN=""
  9. #Customized git status, oh-my-zsh currently does not allow render dirty status before branch
  10. git_custom_status() {
  11. local cb=$(current_branch)
  12. if [ -n "$cb" ]; then
  13. echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
  14. fi
  15. }
  16. PROMPT='$(git_custom_status)%{$fg[cyan]%}[%~% ]%{$reset_color%}%B$%b '