From adf2c55233f1924f5456e940d0ad07c67df26d1e Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 2 May 2011 02:59:34 +0200 Subject: [PATCH] zsh/rc: Always use -Uz for autoload. --- zsh/rc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zsh/rc b/zsh/rc index d7106f4..a59bf29 100644 --- a/zsh/rc +++ b/zsh/rc @@ -61,7 +61,7 @@ fpath=(~/.zsh/functions $fpath) # Autoload my functions (except completion functions and hidden files). Thanks # to caphuso from the Zsh example files for this idea. if [[ -d ~/.zsh/functions ]]; then - autoload ${fpath[1]}/^_*(^/:t) + autoload -Uz ${fpath[1]}/^_*(^/:t) fi # Simulate hooks using _functions arrays for Zsh versions older than 4.3.4. At @@ -96,7 +96,7 @@ fi autoload -Uz add-zsh-hook # Load zmv (zsh move) which is powerful to rename files. -autoload zmv +autoload -Uz zmv # HISTORY SETTINGS @@ -143,7 +143,7 @@ bindkey -a '^N' history-beginning-search-forward # PROMPT SETTINGS # Use colorized output, necessary for prompts and completions. -autoload -U colors && colors +autoload -Uz colors && colors # Necessary for $EPOCHSECONDS, the UNIX time. zmodload zsh/datetime @@ -451,7 +451,7 @@ zmodload zsh/complist # cluttering of ~/. $fpath must be set before calling this. Thanks to Adlai in # #zsh on Freenode (2009-08-07 21:05 CEST) for reminding me of the $fpath # problem. -autoload -U compinit && compinit -d ~/.zsh/cache/zcompdump +autoload -Uz compinit && compinit -d ~/.zsh/cache/zcompdump # Use cache to speed up completions. zstyle ':completion:*' use-cache on -- 2.45.2