2     git branch >/dev/null 2>/dev/null && echo '±' && return
 
   3     hg root >/dev/null 2>/dev/null && echo 'Hg' && return
 
   7 function virtualenv_info {
 
   8     [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
 
  11 function collapse_pwd {
 
  12     echo $(pwd | sed -e "s,^$HOME,~,")
 
  15 if which rvm-prompt &> /dev/null; then
 
  16   PROMPT='%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) using %{$reset_color%}%{$fg[red]%}$(~/.rvm/bin/rvm-prompt)%{$reset_color%} 
 
  17 $(virtualenv_info)$(prompt_char) '
 
  19   if which rbenv &> /dev/null; then
 
  20     PROMPT='%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) using %{$reset_color%}%{$fg[red]%}$(rbenv version | sed -e "s/ (set.*$//")%{$reset_color%} 
 
  21 $(virtualenv_info)$(prompt_char) '
 
  26 ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
 
  27 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
 
  28 ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
 
  29 ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
 
  30 ZSH_THEME_GIT_PROMPT_CLEAN=""