Crunch.bgptheme 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # This theme for gitprompt.sh is designed for dark color schemes
  2. # it is clone of oh-my-zsh crunch theme style with exit status
  3. override_git_prompt_colors() {
  4. if [ -e ~/.rvm/bin/rvm-prompt ]; then
  5. RUBY_PROMPT='{$(~/.rvm/bin/rvm-prompt i v)}'
  6. else
  7. if command -v rbenv > /dev/null; then
  8. RUBY_PROMPT='{$(rbenv version | sed -e "s/ (set.*$//")}'
  9. fi
  10. fi
  11. Time12a="\$(date +%H:%M)"
  12. GIT_PROMPT_THEME_NAME="Crunch"
  13. GIT_PROMPT_STAGED="${Yellow}● "
  14. GIT_PROMPT_UNTRACKED="${Cyan}… "
  15. GIT_PROMPT_STASHED="${BoldMagenta}⚑ "
  16. GIT_PROMPT_CLEAN="${Green}✔ "
  17. GIT_PROMPT_COMMAND_OK="${Green}✔ "
  18. GIT_PROMPT_COMMAND_FAIL="${Red}✘ "
  19. KERNEL_PROMPT='‹$(uname -r)›'
  20. GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_${White}{${Yellow}${Time12a}${White}}[${Magenta}${RUBY_PROMPT}${White}]${Cyan}${PathShort}${White}:"
  21. GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"
  22. GIT_PROMPT_END_USER="${BoldBlue} ➭ ${ResetColor}"
  23. GIT_PROMPT_END_ROOT="${BoldRed} # ${ResetColor}"
  24. GIT_PROMPT_LEADING_SPACE=0
  25. GIT_PROMPT_PREFIX="${Green}["
  26. GIT_PROMPT_SUFFIX="${Green}]"
  27. GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING="✭"
  28. }
  29. reload_git_prompt_colors "Crunch"