From: Carsten Hey Date: Mon, 28 Jun 2010 18:43:18 +0000 (+0200) Subject: zshrc: load zsh/stat as zstat instead of stat X-Git-Tag: v0.3.84~50 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=01b9ed02a2e39dd58de3bff8a673ac1add3e7bae;p=grml-etc-core.git zshrc: load zsh/stat as zstat instead of stat Signed-off-by: Carsten Hey --- 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