X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=d7f98e383d2ab6823b1651bd3e455ec6414430c3;hb=5532870e3ba9416a0c5699151e75555168bb7a33;hp=7ca68cfac8f67a3959ed68a4cfc8ce980047813e;hpb=1a4bd46bdfe7ee7cba99cd7d19641345453e05a8;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 7ca68cf..d7f98e3 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -116,10 +116,10 @@ check_com() { return 1 fi - if [[ -n ${commands[$1]} ]] \ - || [[ -n ${functions[$1]} ]] \ - || [[ -n ${aliases[$1]} ]] \ - || [[ -n ${reswords[$1]} ]] ; then + if [[ -n ${commands[$1]} ]] \ + || [[ -n ${functions[$1]} ]] \ + || [[ -n ${aliases[$1]} ]] \ + || [[ -n ${reswords[(r)$1]} ]] ; then return 0 fi