completion/consul: use `_command_exists`
parent
bb555aefbf
commit
dca96e0c39
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue