Browse code

Merge pull request #552 from Tricon/master

Purple Apple Logo Theme

Robby Russell authored on 10/10/2011 at 12:46:08
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,26 @@
0
+function toon {
1
+  echo -n ""
2
+}
3
+
4
+get_git_dirty() { 
5
+  git diff --quiet || echo '*'
6
+}
7
+
8
+autoload -Uz vcs_info
9
+autoload -U colors && colors
10
+zstyle ':vcs_info:*' check-for-changes true
11
+zstyle ':vcs_info:*' unstagedstr '%F{red}*'   # display this when there are unstaged changes
12
+zstyle ':vcs_info:*' stagedstr '%F{yellow}+'  # display this when there are staged changes
13
+zstyle ':vcs_info:*' actionformats \
14
+    '%F{5}%F{5}[%F{2}%b%F{3}|%F{1}%a%c%u%F{5}]%f '
15
+zstyle ':vcs_info:*' formats       \
16
+    '%F{5}%F{5}[%F{2}%b%c%u%F{5}]%f '
17
+zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
18
+zstyle ':vcs_info:*' enable git cvs svn
19
+
20
+precmd () {
21
+    vcs_info
22
+}
23
+
24
+setopt prompt_subst
25
+PROMPT='%{$fg[magenta]%}$(toon)%{$reset_color%} %~/ %{$reset_color%}${vcs_info_msg_0_}%{$reset_color%}'