From b93ac7785c0c4a12d69dda072dee1a103f56d387 Mon Sep 17 00:00:00 2001 From: Gurkirat Singh Date: Sun, 10 Jan 2021 19:20:06 +0530 Subject: [PATCH] formatted awless completion and used helper function --- clean_files.txt | 1 + completion/available/awless.completion.bash | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/clean_files.txt b/clean_files.txt index be42f2cd..6e73a804 100644 --- a/clean_files.txt +++ b/clean_files.txt @@ -57,6 +57,7 @@ plugins/available/xterm.plugin.bash # completions # +completion/available/awless.completion.bash completion/available/brew.completion.bash completion/available/cargo.completion.bash completion/available/knife.completion.bash diff --git a/completion/available/awless.completion.bash b/completion/available/awless.completion.bash index a3af393d..98a5d388 100644 --- a/completion/available/awless.completion.bash +++ b/completion/available/awless.completion.bash @@ -1 +1,5 @@ -[[ -x "$(which awless)" ]] && source <(awless completion bash) +# shellcheck shell=bash +if _command_exists awless; then + # shellcheck disable=SC1090 + source <(awless completion bash) +fi