X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=fc970625a0d3c65846a17a224ae341b734958d11;hb=1317ff557566fba644ea519f643f951e68adbc0e;hp=d032b3e768d2bbe67d1146ca7293a22bf5713f0b;hpb=46c723f8057ab12fff51788ba3b347d26d1d9eb4;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index d032b3e..fc97062 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -770,7 +770,7 @@ grmlcomp() { # use generic completion system for programs not yet defined; (_gnu_generic works # with commands that provide a --help option with "standard" gnu-like output.) - for compcom in cp deborphan df feh fetchipac head hnb ipacsum mv \ + for compcom in cp deborphan df feh fetchipac gpasswd head hnb ipacsum mv \ pal stow tail uname ; do [[ -z ${_comps[$compcom]} ]] && compdef _gnu_generic ${compcom} done; unset compcom @@ -2941,8 +2941,13 @@ modified() { check_com new || alias new=modified # use colors when GNU grep with color-support -#a2# Execute \kbd{grep -{}-color=auto} -(( $#grep_options > 0 )) && alias grep='grep '${grep_options:+"${grep_options[*]}"} +if (( $#grep_options > 0 )); then + o=${grep_options:+"${grep_options[*]}"} + #a2# Execute \kbd{grep -{}-color=auto} + alias grep='grep '$o + alias egrep='egrep '$o + unset o +fi # Translate DE<=>EN # 'translate' looks up fot a word in a file with language-to-language