zshrc: load zsh/stat as zstat instead of stat
authorCarsten Hey <carsten@debian.org>
Mon, 28 Jun 2010 18:43:18 +0000 (20:43 +0200)
committerFrank Terbeck <ft@bewatermyfriend.org>
Tue, 29 Jun 2010 09:00:46 +0000 (11:00 +0200)
Signed-off-by: Carsten Hey <carsten@debian.org>
etc/zsh/zshrc

index faf6c31..3f53ec3 100644 (file)
@@ -867,17 +867,9 @@ done
 
 # autoload zsh modules when they are referenced
 if is4 ; then
-    tmpargs=(
-        a   stat
-        a   zpty
-        ap  mapfile
-    )
-
-    while (( ${#tmpargs} > 0 )) ; do
-        zmodload -${tmpargs[1]} zsh/${tmpargs[2]} ${tmpargs[2]}
-        shift 2 tmpargs
-    done
-    unset tmpargs
+    zmodload -a  zsh/stat    zstat
+    zmodload -a  zsh/zpty    zpty
+    zmodload -ap zsh/mapfile mapfile
 fi
 
 if is4 && zrcautoload insert-files && zle -N insert-files ; then