1
|
1
|
new file mode 100644
|
...
|
...
|
@@ -0,0 +1,23 @@
|
|
0
|
+setopt prompt_subst
|
|
1
|
+autoload colors
|
|
2
|
+colors
|
|
3
|
+
|
|
4
|
+autoload -U add-zsh-hook
|
|
5
|
+autoload -Uz vcs_info
|
|
6
|
+
|
|
7
|
+# check-for-changes can be really slow.
|
|
8
|
+# you should disable it, if you work with large repositories
|
|
9
|
+zstyle ':vcs_info:*:prompt:*' check-for-changes true
|
|
10
|
+
|
|
11
|
+add-zsh-hook precmd mikeh_precmd
|
|
12
|
+
|
|
13
|
+mikeh_precmd() {
|
|
14
|
+ vcs_info
|
|
15
|
+}
|
|
16
|
+
|
|
17
|
+# user, host, full path, and time/date
|
|
18
|
+# on two lines for easier vgrepping
|
|
19
|
+# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
|
|
20
|
+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%}
|
|
21
|
+%{\e[0;34m%}%B..%B[%{\e[1;35m%}$%{\e[0;34m%}%B] <($vcs_info_msg_0_)>%{\e[0m%}%b '
|
|
22
|
+PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
|
0
|
23
|
\ No newline at end of file
|