Skip to content
Newer
Older
100644 23 lines (18 sloc) 878 Bytes
e3b9e98 @squarepegsys added my theme, based on xiong-chiamiov-plus but using vcs_info
squarepegsys authored Mar 31, 2010
1 setopt prompt_subst
2 autoload colors
3 colors
4
5 autoload -U add-zsh-hook
6 autoload -Uz vcs_info
7
8 # check-for-changes can be really slow.
9 # you should disable it, if you work with large repositories
10 zstyle ':vcs_info:*:prompt:*' check-for-changes true
11
12 add-zsh-hook precmd mikeh_precmd
13
14 mikeh_precmd() {
15 vcs_info
16 }
17
18 # user, host, full path, and time/date
19 # on two lines for easier vgrepping
20 # entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
21 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%}
22 %{\e[0;34m%}%B..%B[%{\e[1;35m%}$%{\e[0;34m%}%B] <($vcs_info_msg_0_)>%{\e[0m%}%b '
23 PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
Something went wrong with that request. Please try again.