From: Frank Terbeck Date: Sun, 17 Mar 2013 17:07:10 +0000 (+0100) Subject: zshrc: Use zrcgotwidget in appropriate places X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=a33ad91f39921a70388b0969774a2aab9491ff44 zshrc: Use zrcgotwidget in appropriate places Signed-off-by: Frank Terbeck --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index b046058..7f25649 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 }