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