11 lines
180 B
Bash
11 lines
180 B
Bash
# bash completion support for Hashicorp consul
|
|
|
|
CONSUL_BIN=$(command -v consul 2>/dev/null)
|
|
|
|
if [[ -x "$CONSUL_BIN" ]]
|
|
then
|
|
complete -C "$CONSUL_BIN" consul
|
|
fi
|
|
|
|
unset CONSUL_BIN
|