X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=3f53ec3e4f663b942a1cd36381445ed875c676a9;hb=01b9ed02a2e39dd58de3bff8a673ac1add3e7bae;hp=bd54c2b1b239493673b5822a4faeaac665b24526;hpb=3c7bb2fa9a9957d4703b51cc54de094bd4232822;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index bd54c2b..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 @@ -3525,13 +3517,13 @@ regcheck() { #f5# List files which have been changed within the last {\it n} days, {\it n} defaults to 1 changed() { emulate -L zsh - print -l *(c-${1:1}) + print -l *(c-${1:-1}) } #f5# List files which have been modified within the last {\it n} days, {\it n} defaults to 1 new() { emulate -L zsh - print -l *(m-${1:1}) + print -l *(m-${1:-1}) } #f5# Grep in history