completion/consul: use _command_exists

This commit is contained in:
John D Pell
2021-09-11 18:01:54 -07:00
parent bb555aefbf
commit dca96e0c39

View File

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