nebirhos.zsh-theme 815 B

1234567891011121314151617
  1. # Based on robbyrussell's theme, with host and rvm indicators. Example:
  2. # @host ➜ currentdir rvm:(rubyversion@gemset) git:(branchname)
  3. # Get the current ruby version in use with RVM:
  4. if [ -e ~/.rvm/bin/rvm-prompt ]; then
  5. RUBY_PROMPT_="%{$fg_bold[blue]%}rvm:(%{$fg[green]%}\$(~/.rvm/bin/rvm-prompt s i v g)%{$fg_bold[blue]%})%{$reset_color%} "
  6. fi
  7. # Get the host name (first 4 chars)
  8. HOST_PROMPT_="%{$fg_bold[red]%}@$HOST[0,4] ➜ %{$fg_bold[cyan]%}%c "
  9. GIT_PROMPT="%{$fg_bold[blue]%}\$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}"
  10. PROMPT="$HOST_PROMPT_$RUBY_PROMPT_$GIT_PROMPT"
  11. ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
  12. ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
  13. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
  14. ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"