03fc819bee2ebef117bc2bd9e2ecb46902b9dc62
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #552 from Tricon/master
Purple Apple Logo Theme
Diff
1diff --git a/themes/apple.zsh-theme b/themes/apple.zsh-theme
2new file mode 100644
3index 0000000000000000000000000000000000000000..92f1df941e7c0f027b78df4b86ebeeb7db4b82b3
4--- /dev/null
5+++ b/themes/apple.zsh-theme
6@@ -0,0 +1,26 @@
7+function toon {
8+ echo -n ""
9+}
10+
11+get_git_dirty() {
12+ git diff --quiet || echo '*'
13+}
14+
15+autoload -Uz vcs_info
16+autoload -U colors && colors
17+zstyle ':vcs_info:*' check-for-changes true
18+zstyle ':vcs_info:*' unstagedstr '%F{red}*' # display this when there are unstaged changes
19+zstyle ':vcs_info:*' stagedstr '%F{yellow}+' # display this when there are staged changes
20+zstyle ':vcs_info:*' actionformats \
21+ '%F{5}%F{5}[%F{2}%b%F{3}|%F{1}%a%c%u%F{5}]%f '
22+zstyle ':vcs_info:*' formats \
23+ '%F{5}%F{5}[%F{2}%b%c%u%F{5}]%f '
24+zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
25+zstyle ':vcs_info:*' enable git cvs svn
26+
27+precmd () {
28+ vcs_info
29+}
30+
31+setopt prompt_subst
32+PROMPT='%{$fg[magenta]%}$(toon)%{$reset_color%} %~/ %{$reset_color%}${vcs_info_msg_0_}%{$reset_color%}'