diff options
author | Robby Russell <robby@planetargon.com> | 2011-12-14 21:52:42 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-12-14 21:52:42 -0800 |
commit | a9a0f580095bdf64c9a02e795b669e7126de4b65 (patch) | |
tree | c3ca51013ff8f0b6e4848e388c55d1e48f6adb77 /themes/apple.zsh-theme | |
parent | d3cc18499d36e3ca878eb29a57453b503e29df9c (diff) | |
parent | 5277a0ffaacbc2e23c8753fefdf1c4fe6d1e7685 (diff) | |
download | zsh-a9a0f580095bdf64c9a02e795b669e7126de4b65.tar.gz zsh-a9a0f580095bdf64c9a02e795b669e7126de4b65.tar.bz2 zsh-a9a0f580095bdf64c9a02e795b669e7126de4b65.zip |
Merge pull request #706 from docwhat/termsupport-hook
lib/termsupport now uses add-zsh-hook
Diffstat (limited to 'themes/apple.zsh-theme')
-rw-r--r-- | themes/apple.zsh-theme | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/themes/apple.zsh-theme b/themes/apple.zsh-theme index 92f1df941..275341dc6 100644 --- a/themes/apple.zsh-theme +++ b/themes/apple.zsh-theme @@ -2,7 +2,7 @@ function toon { echo -n "" } -get_git_dirty() { +get_git_dirty() { git diff --quiet || echo '*' } @@ -18,9 +18,12 @@ zstyle ':vcs_info:*' formats \ zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' zstyle ':vcs_info:*' enable git cvs svn -precmd () { +theme_precmd () { vcs_info } setopt prompt_subst PROMPT='%{$fg[magenta]%}$(toon)%{$reset_color%} %~/ %{$reset_color%}${vcs_info_msg_0_}%{$reset_color%}' + +autoload -U add-zsh-hook +add-zsh-hook precmd theme_precmd
\ No newline at end of file |