formatted consul completion and used helper function
parent
6e9fa193b7
commit
5be5d6933d
|
|
@ -1,10 +1,7 @@
|
|||
# bash completion support for Hashicorp consul
|
||||
|
||||
CONSUL_BIN=$(command -v consul 2>/dev/null)
|
||||
|
||||
if [[ -x "$CONSUL_BIN" ]]
|
||||
if _command_exists consul
|
||||
then
|
||||
complete -C "$CONSUL_BIN" consul
|
||||
complete -C "$(which consul)" consul
|
||||
fi
|
||||
|
||||
unset CONSUL_BIN
|
||||
|
|
|
|||
Loading…
Reference in New Issue