diff options
author | Mike Hostetler <mike@squarepegsystems.com> | 2010-03-31 00:21:42 +0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2010-05-08 04:23:01 +0800 |
commit | e3b9e981538d2bbb9a3c3934419162d1c2a6046e (patch) | |
tree | 4fd6e083c726c5de77e246d46a7d62c35cabc6d2 /themes/mikeh.zsh-theme | |
parent | 9efc086fb3140e6e9023f7d8543d5b8231075370 (diff) | |
download | zsh-e3b9e981538d2bbb9a3c3934419162d1c2a6046e.tar.gz zsh-e3b9e981538d2bbb9a3c3934419162d1c2a6046e.tar.bz2 zsh-e3b9e981538d2bbb9a3c3934419162d1c2a6046e.zip |
added my theme, based on xiong-chiamiov-plus but using vcs_info
instead of just git
Diffstat (limited to 'themes/mikeh.zsh-theme')
-rw-r--r-- | themes/mikeh.zsh-theme | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/themes/mikeh.zsh-theme b/themes/mikeh.zsh-theme new file mode 100644 index 000000000..943f04d38 --- /dev/null +++ b/themes/mikeh.zsh-theme @@ -0,0 +1,23 @@ +setopt prompt_subst +autoload colors +colors + +autoload -U add-zsh-hook +autoload -Uz vcs_info + +# check-for-changes can be really slow. +# you should disable it, if you work with large repositories +zstyle ':vcs_info:*:prompt:*' check-for-changes true + +add-zsh-hook precmd mikeh_precmd + +mikeh_precmd() { + vcs_info +} + +# user, host, full path, and time/date +# on two lines for easier vgrepping +# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888 +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%} +%{\e[0;34m%}%B..%B[%{\e[1;35m%}$%{\e[0;34m%}%B] <($vcs_info_msg_0_)>%{\e[0m%}%b ' +PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
\ No newline at end of file |