[Pkg-zsh-devel] [PATCH 5/6] Use stricter options with autoload

Frank Terbeck ft at bewatermyfriend.org
Mon Mar 5 23:02:11 UTC 2012


-U suppresses alias expansion while the function is loaded. And -z
forces zsh-style autoloading semantics (instead of the optional
ksh-style, which someone could have set in a files that is sourced
earlier than the zshrc file).

Signed-off-by: Frank Terbeck <ft at bewatermyfriend.org>
---
 debian/zshrc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian/zshrc b/debian/zshrc
index 5eb80b9..4a0bfb4 100644
--- a/debian/zshrc
+++ b/debian/zshrc
@@ -85,4 +85,4 @@ zstyle ':completion:*:sudo:*' command-path /usr/local/sbin \
                                            /usr/X11R6/bin
 
 (( ${+aliases[run-help]} )) && unalias run-help
-autoload run-help
+autoload -Uz run-help
-- 
1.7.9.188.g12766




More information about the Pkg-zsh-devel mailing list