]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
Move autoload of add-zsh-hook to "function settings".
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index 69b19df10d66861c06dec31627b7b4e4e9203874..cbf880e5c5ae89f2a164bf723189997241dcb8be 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -1,6 +1,8 @@
 # Zsh configuration file.
 
 
+source_debug "sourcing ~/.zsh/rc"
+
 # MISCELLANEOUS SETTINGS
 
 # Use Vi(m) style key bindings.
@@ -40,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
 
@@ -60,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
 
@@ -296,3 +298,5 @@ todo() {
 source_config ~/.zsh os rc $(uname) nolocal
 # Load rc file for current hostname (first part before a dot) or rc.local.
 source_config ~/.zsh host rc ${$(hostname)//.*/}
+
+source_debug "finished sourcing ~/.zsh/rc"