From bb555aefbfb84c7c9c05067b9b0fbf09b143a7ea Mon Sep 17 00:00:00 2001 From: John D Pell Date: Sat, 11 Sep 2021 18:00:59 -0700 Subject: [PATCH] completion/pew: use `_command_exists` --- completion/available/pew.completion.bash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/completion/available/pew.completion.bash b/completion/available/pew.completion.bash index 73d62e39..04e67ecb 100644 --- a/completion/available/pew.completion.bash +++ b/completion/available/pew.completion.bash @@ -1 +1,6 @@ -[[ -x "$(which pew)" ]] && source "$(pew shell_config)" +# shellcheck shell=bash + +if _command_exists pew +then + source "$(pew shell_config)" +fi