Better use of which-command and a clip func

This commit is contained in:
Gal Szkolnik 2022-06-29 01:24:41 -04:00
parent 41ca116a70
commit 70aa423d53
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
TERRAFORM_BIN=$(type -fP terraform | head -1)
if [[ -n $TERRAFORM_BIN ]]; then
TERRAFORM_BIN=$(which-command terraform | head -1)
if [[ -x $TERRAFORM_BIN ]]; then
complete -C $TERRAFORM_BIN terraform
fi