# 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
autoload -Uz add-zsh-hook
# Load zmv (zsh move) which is powerful to rename files.
-autoload zmv
+autoload -Uz zmv
# HISTORY SETTINGS
# 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
# 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