itchy.zsh-theme 617 B

123456789101112131415161718
  1. # Inspired by http://peepcode.com/blog/2012/my-command-line-prompt
  2. local smiley="%(?,%{$fg[green]%}☺%{$reset_color%},%{$fg[red]%}☹%{$reset_color%})"
  3. local user="%{$fg[cyan]%}%n%{$reset_color%}"
  4. local host="%{$fg[cyan]%}@%m%{$reset_color%}"
  5. local pwd="%{$fg[yellow]%}%~%{$reset_color%}"
  6. PROMPT='${user}${host} ${pwd}
  7. ${smiley} '
  8. RPROMPT='$(rvm-prompt || rbenv version) %{$fg[white]%}$(git_prompt_info)%{$reset_color%}'
  9. ZSH_THEME_GIT_PROMPT_PREFIX=""
  10. ZSH_THEME_GIT_PROMPT_SUFFIX=""
  11. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} ✗%{$reset_color%}"
  12. ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ✔%{$reset_color%}"