diff --git a/completion/awscli.completion.sh b/completion/awscli.completion.sh index 530bdd2..e144cf1 100644 --- a/completion/awscli.completion.sh +++ b/completion/awscli.completion.sh @@ -1 +1 @@ -[[ -x "$(which aws_completer)" ]] && complete -C "$(which aws_completer)" aws +[[ -x "$(which aws_completer)" ]] &>/dev/null && complete -C "$(which aws_completer)" aws diff --git a/completion/conda.completion.sh b/completion/conda.completion.sh index f43889f..e835dfe 100644 --- a/completion/conda.completion.sh +++ b/completion/conda.completion.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash -which register-python-argcomplete > /dev/null \ +which register-python-argcomplete &> /dev/null \ && eval "$(register-python-argcomplete conda)" \ || echo "Please install argcomplete to use conda completion" > /dev/null diff --git a/completion/jungle.completion.sh b/completion/jungle.completion.sh index 351da28..c7a92b4 100644 --- a/completion/jungle.completion.sh +++ b/completion/jungle.completion.sh @@ -1 +1 @@ -[[ -x "$(which jungle)" ]] && eval "$(_JUNGLE_COMPLETE=source jungle)" +[[ -x "$(which jungle)" ]] &>/dev/null && eval "$(_JUNGLE_COMPLETE=source jungle)" diff --git a/completion/kontena.completion.sh b/completion/kontena.completion.sh index a1d24b3..6626b02 100644 --- a/completion/kontena.completion.sh +++ b/completion/kontena.completion.sh @@ -1 +1 @@ -which kontena > /dev/null && . "$( kontena whoami --bash-completion-path )" +which kontena &> /dev/null && . "$( kontena whoami --bash-completion-path )"