]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Move autoload of add-zsh-hook to "function settings".
authorSimon Ruderich <simon@ruderich.org>
Sun, 8 Feb 2009 15:49:35 +0000 (16:49 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 16 Feb 2009 15:34:43 +0000 (16:34 +0100)
It fits there better.

zsh/rc

diff --git a/zsh/rc b/zsh/rc
index a7d62cc484ec6f6dec29cff93fe61e9081d4e817..cbf880e5c5ae89f2a164bf723189997241dcb8be 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -42,6 +42,9 @@ fpath=(~/.zsh/functions $fpath)
 # to caphuso from the Zsh example files for this idea.
 autoload ${fpath[1]}/^_*(:t)
 
+# Autoload add-zsh-hook to add/remove zsh hook functions easily.
+autoload -Uz add-zsh-hook
+
 
 # HISTORY SETTINGS
 
@@ -62,9 +65,6 @@ bindkey "^N" history-beginning-search-forward
 
 # PROMPT SETTINGS
 
-# Autoload add-zsh-hook to add/remove zsh hook functions easily.
-autoload -Uz add-zsh-hook
-
 # Use colorized output, necessary for prompts and completions.
 autoload -U colors && colors