completion/consul: use `_command_exists`

pull/1938/head
John D Pell 2021-09-11 18:01:54 -07:00
parent bb555aefbf
commit dca96e0c39
1 changed files with 1 additions and 1 deletions

View File

@ -3,5 +3,5 @@ cite "about-completion"
about-completion "Hashicorp consul completion" about-completion "Hashicorp consul completion"
if _command_exists consul; then if _command_exists consul; then
complete -C "$(which consul)" consul complete -C "$(command -v consul)" consul
fi fi