diff --git a/completion/bash/is b/completion/bash/is index 9fcb82219bea59a84f1ae601bd73a19dde830c0f..b96ff4e1696a5995c3065f569428815410bf090f 100644 --- a/completion/bash/is +++ b/completion/bash/is @@ -15,17 +15,17 @@ # list local repositories _local_repo() { - COMPREPLY=("${COMPREPLY[@]}" $(compgen -W "$(is --quiet --no-color --no-sync repo --local)" -- "$cur")) + COMPREPLY=("${COMPREPLY[@]}" $(compgen -W "$(is --quiet --no-color --no-sync repo --local 2>/dev/null)" -- "$cur")) } # list all defined repositories _repo() { - COMPREPLY=("${COMPREPLY[@]}" $(compgen -W "$(is --quiet --no-color --no-sync repo)" -- "$cur")) + COMPREPLY=("${COMPREPLY[@]}" $(compgen -W "$(is --quiet --no-color --no-sync repo 2>/dev/null)" -- "$cur")) } # list all images available in any online repositories _remote_image() { - COMPREPLY=("${COMPREPLY[@]}" $(compgen -W "$(is --quiet --no-color --no-sync list '*/*:*')" -- "$cur")) + COMPREPLY=("${COMPREPLY[@]}" $(compgen -W "$(is --quiet --no-color --no-sync list '*/*:*' 2>/dev/null)" -- "$cur")) } # list all local (files) images diff --git a/completion/zsh/_installsystems b/completion/zsh/_installsystems index 59a47bbeb517c88c0da6f8b51e9deb02a714ed2a..66158657fd108203e5398cf55c62a8de22b4531f 100644 --- a/completion/zsh/_installsystems +++ b/completion/zsh/_installsystems @@ -20,7 +20,7 @@ (( $+functions[_installsystems_local_repo] )) || _installsystems_local_repo() { local repos expl - repos=($(_call_program options is --quiet --no-color --no-sync repo --local)) + repos=($(_call_program options is --quiet --no-color --no-sync repo --local 2>/dev/null)) _wanted list expl 'local repo' compadd ${expl} - ${repos} } @@ -28,7 +28,7 @@ _installsystems_local_repo() { (( $+functions[_installsystems_repo] )) || _installsystems_repo() { local repos expl - repos=($(_call_program options is --quiet --no-color --no-sync repo)) + repos=($(_call_program options is --quiet --no-color --no-sync repo 2>/dev/null)) _wanted list expl 'repo' compadd ${expl} - ${repos} } @@ -36,7 +36,7 @@ _installsystems_repo() { (( $+functions[_installsystems_remote_images] )) || _installsystems_remote_images() { local images expl - images=($(_call_program options is --quiet --no-color --no-sync list "'*/*:*'")) + images=($(_call_program options is --quiet --no-color --no-sync list "'*/*:*'" 2>/dev/null)) _wanted list expl 'remote image' compadd ${expl} - ${images} } @@ -44,8 +44,8 @@ _installsystems_remote_images() { (( $+functions[_installsystems_local_images] )) || _installsystems_local_images() { local localrepos expl images - localrepos=${(j:,:)${$(_call_program options is --quiet --no-color --no-sync repo --local)}} - images=($(_call_program options is --quiet --no-color --no-sync -s ${localrepos} -f ${localrepos} list "'*/*:*'")) + localrepos=${(j:,:)${$(_call_program options is --quiet --no-color --no-sync repo --local 2>/dev/null)}} + images=($(_call_program options is --quiet --no-color --no-sync -s ${localrepos} -f ${localrepos} list "'*/*:*'" 2>/dev/null)) _wanted list expl 'local image' compadd ${expl} - ${images} }