summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-11-28 10:18:43 +0100
committerGravatar Tom Willemsen2012-11-28 10:18:43 +0100
commit27065816c78f1678ab2295ecc1e4eaf5ebd9bd83 (patch)
treec4840fa17486d62739f7690122de7623139ed386
parent83c71c18d746accbf383b247b04664493d78e4c1 (diff)
downloaddotfiles-27065816c78f1678ab2295ecc1e4eaf5ebd9bd83.tar.gz
dotfiles-27065816c78f1678ab2295ecc1e4eaf5ebd9bd83.zip
.zshrc
-rw-r--r--.zshrc11
1 files changed, 7 insertions, 4 deletions
diff --git a/.zshrc b/.zshrc
index 1a166e5..307ebc7 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,4 +1,6 @@
# -*- Mode: shell-script; -*-
+autoload -Uz add-zsh-hook
+
# Setup variables
HISTFILE=$ZDOTDIR/histfile
HISTSIZE=1000
@@ -48,10 +50,11 @@ typeset -ga precmd_functions
typeset -ga chpwd_functions
# Append git functions needed for prompt.
-preexec_functions+='preexec_update_vars'
-precmd_functions+='precmd_update_git_vars'
-precmd_functions+='precmd_update_updates'
-chpwd_functions+='chpwd_update_git_vars'
+add-zsh-hook preexec preexec_update_vars
+add-zsh-hook precmd precmd_update_git_vars
+add-zsh-hook precmd precmd_update_updates
+add-zsh-hook precmd precmd_maybe_festival
+add-zsh-hook chpwd chpwd_update_git_vars
# Set the prompt.
PROMPT='$(prompt)'