my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
661 B

3 years ago
  1. function prompt_char {
  2. git branch >/dev/null 2>/dev/null && echo '±' && return
  3. hg root >/dev/null 2>/dev/null && echo 'Hg' && return
  4. echo '○'
  5. }
  6. function virtualenv_info {
  7. [[ -n "$VIRTUAL_ENV" ]] && echo '('${VIRTUAL_ENV:t}') '
  8. }
  9. PROMPT='%F{magenta}%n%f at %F{yellow}%m%f in %B%F{green}%~%f%b$(git_prompt_info)$(ruby_prompt_info)
  10. $(virtualenv_info) $(prompt_char) '
  11. ZSH_THEME_GIT_PROMPT_PREFIX=' on %F{magenta}'
  12. ZSH_THEME_GIT_PROMPT_SUFFIX='%f'
  13. ZSH_THEME_GIT_PROMPT_DIRTY='%F{green}!'
  14. ZSH_THEME_GIT_PROMPT_UNTRACKED='%F{green}?'
  15. ZSH_THEME_GIT_PROMPT_CLEAN=''
  16. ZSH_THEME_RUBY_PROMPT_PREFIX=' using %F{red}'
  17. ZSH_THEME_RUBY_PROMPT_SUFFIX='%f'