X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=3f53ec3e4f663b942a1cd36381445ed875c676a9;hb=01b9ed02a2e39dd58de3bff8a673ac1add3e7bae;hp=faf6c3151f8b831af5a2575749720f74c8d1ed00;hpb=cfef940a82ef9cac9de13c25653e9a6b24975091;p=grml-etc-core.git 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