From 5aa89285cab50ca3280fdbd92175548dcc048ac9 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 8 Feb 2009 16:46:48 +0100 Subject: [PATCH] Autoload custom functions at start of zsh/rc. Moved to new section "Function settings" at the beginning of rc. --- zsh/rc | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/zsh/rc b/zsh/rc index 62dcda7..69b19df 100644 --- a/zsh/rc +++ b/zsh/rc @@ -31,6 +31,16 @@ setopt extendedglob setopt ignoreeof +# FUNCTION SETTINGS + +# Set correct fpath to allow loading my functions (including completion +# functions). +fpath=(~/.zsh/functions $fpath) +# Autoload my functions (except completion functions and hidden files). Thanks +# to caphuso from the Zsh example files for this idea. +autoload ${fpath[1]}/^_*(:t) + + # HISTORY SETTINGS # Use history and store it in ~/.zsh/history. @@ -197,7 +207,7 @@ zstyle ':completion:*:unset:*' ignore-line yes zstyle ':completion:*:(hg|git)*:*' ignore-line yes -# ALIAS AND FUNCTION SETTINGS +# CUSTOM ALIASES AND FUNCTIONS # Simplify calls to less, automatically redirects all output. alias -g L='2>&1 | less' @@ -262,13 +272,6 @@ function ll() { la -l $* } -# Set correct fpath to allow loading my functions (including completion -# functions). -fpath=(~/.zsh/functions $fpath) -# Autoload my functions (except completion functions and hidden files). Thanks -# to caphuso from the Zsh example files for this idea. -autoload ${fpath[1]}/^_*(:t) - # 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 -- 2.44.2