From 01b9ed02a2e39dd58de3bff8a673ac1add3e7bae Mon Sep 17 00:00:00 2001 From: Carsten Hey Date: Mon, 28 Jun 2010 20:43:18 +0200 Subject: [PATCH] zshrc: load zsh/stat as zstat instead of stat Signed-off-by: Carsten Hey --- etc/zsh/zshrc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index faf6c31..3f53ec3 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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 -- 2.1.4