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
857 B

3 years ago
  1. setopt prompt_subst
  2. autoload -U add-zsh-hook
  3. autoload -Uz vcs_info
  4. # check-for-changes can be really slow.
  5. # you should disable it, if you work with large repositories
  6. zstyle ':vcs_info:*:prompt:*' check-for-changes true
  7. add-zsh-hook precmd mikeh_precmd
  8. mikeh_precmd() {
  9. vcs_info
  10. }
  11. # user, host, full path, and time/date
  12. # on two lines for easier vgrepping
  13. # entry in a nice long thread on the Arch Linux forums: https://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
  14. PROMPT=$'%{\e[0;34m%}%B..[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;30m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}'%D{"%a %b %d, %I:%M"}%b$'%{\e[0;34m%}%B]%b%{\e[0m%}
  15. %{\e[0;34m%}%B..%B[%{\e[1;35m%}$%{\e[0;34m%}%B] <($vcs_info_msg_0_)>%{\e[0m%}%b '
  16. PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '