From dc3c67df361ac10ee2c0c640f228b9258bf890d3 Mon Sep 17 00:00:00 2001 From: Johan Stenberg Date: Wed, 13 Apr 2016 15:13:03 -0700 Subject: [PATCH] Update shell statement completion script to make use of argcomplete --- az.completion.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/az.completion.sh b/az.completion.sh index 654b52eb0..9d0ae9eac 100644 --- a/az.completion.sh +++ b/az.completion.sh @@ -1,13 +1 @@ -if type compdef &>/dev/null; then - #ZSH - _az_complete() { - compadd -- `"${COMP_WORDS[0]}" --complete "${words[@]:1}"` - } - compdef _az_complete az -elif type complete &>/dev/null; then - #BASH - _az_complete() { - COMPREPLY=( $(compgen -W '$("${COMP_WORDS[0]}" --complete "${COMP_WORDS[@]:1}")' -- "${COMP_WORDS[COMP_CWORD]}") ) - } - complete -F _az_complete az -fi +eval "$(register-python-argcomplete az)"