e3b9e981538d2bbb9a3c3934419162d1c2a6046e

Author
Mike Hostetler <mike@squarepegsystems.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

added my theme, based on xiong-chiamiov-plus but using vcs_info
instead of just git

Diff

This diff is truncated to protect this page.

 1diff --git a/themes/mikeh.zsh-theme b/themes/mikeh.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..943f04d389ccee2883584b8c55b9518126d3b4a4
 4--- /dev/null
 5+++ b/themes/mikeh.zsh-theme
 6@@ -0,0 +1,23 @@
 7+setopt prompt_subst
 8+autoload colors
 9+colors
10+
11+autoload -U add-zsh-hook
12+autoload -Uz vcs_info
13+
14+# check-for-changes can be really slow.
15+# you should disable it, if you work with large repositories
16+zstyle ':vcs_info:*:prompt:*' check-for-changes true
17+
18+add-zsh-hook precmd mikeh_precmd
19+
20+mikeh_precmd() {
21+    vcs_info
22+}
23+
24+# user, host, full path, and time/date
25+# on two lines for easier vgrepping
26+# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888