Better use of which-command and a clip func
This commit is contained in:
parent
41ca116a70
commit
70aa423d53
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue