From: Frank Terbeck Date: Sun, 17 Mar 2013 17:07:10 +0000 (+0100) Subject: zshrc: Use zrcgotwidget in appropriate places X-Git-Tag: v0.8.0~11 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=00522c85207a8b18f7ae5976b3ce78f53f5fb484 zshrc: Use zrcgotwidget in appropriate places Signed-off-by: Frank Terbeck --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 04443a8..ac83984 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1313,7 +1313,7 @@ zstyle ':completion:hist-complete:*' completer _history typeset -ga grml_missing_features function zrcbindkey() { - if (( ARGC && ${+widgets[${argv[-1]}]} )); then + if (( ARGC )) && zrcgotwidget ${argv[-1]}; then bindkey "$@" fi }