summaryrefslogtreecommitdiff
path: root/themes/apple.zsh-theme
diff options
context:
space:
mode:
authorSébastien M-B <essembeh@gmail.com>2011-12-15 16:15:23 +0100
committerSébastien M-B <essembeh@gmail.com>2011-12-15 16:15:23 +0100
commit37266112759a5759536cc4ea84ea063695cd1f2e (patch)
tree8888b8b8a30c1ef7a395bd26bd1f0590c87c4e45 /themes/apple.zsh-theme
parent9969fca25b3205c2969a543aa1495aeb6eed772b (diff)
parentc133f41833ba1ce6a3868a644ad29caa17bfa75a (diff)
downloadzsh-37266112759a5759536cc4ea84ea063695cd1f2e.tar.gz
zsh-37266112759a5759536cc4ea84ea063695cd1f2e.tar.bz2
zsh-37266112759a5759536cc4ea84ea063695cd1f2e.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'themes/apple.zsh-theme')
-rw-r--r--themes/apple.zsh-theme7
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