]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
Use add-zsh-hook for hook functions.
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index fb37a6a5ba0b0e58442e51eb2543af10d72fdfd3..9c0fc35f1835ddac5cf97cdef728251eb6608220 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -84,6 +84,9 @@ setopt extendedglob
 # Don't exit if <C-d> is pressed.
 setopt ignoreeof
 
+# Autoload add-zsh-hook to add/remove zsh hook functions easily.
+autoload -Uz add-zsh-hook
+
 # If ^C is pressed while typing a command, add it to the history so it can be
 # easily retrieved later and then abort like ^C normally does. This is useful
 # when I want to abort an command to do something in between and then finish