From 8f539d5f190300721af21d4a82265c584622cf87 Mon Sep 17 00:00:00 2001 From: che666 Date: Sat, 7 Apr 2018 19:23:04 +0200 Subject: [PATCH] Fixed noise by rerouting the output of some external completion scripts to /dev/null fixing: ISSUE #2 from the master repository. --- completion/awscli.completion.sh | 2 +- completion/conda.completion.sh | 2 +- completion/jungle.completion.sh | 2 +- completion/kontena.completion.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 )"