Merge pull request #1388 from leventyalcin/feature/consul_completion

tab completion for Hashicorp consul
pull/1394/head
Nils Winkler 2019-07-08 08:43:57 +02:00 committed by GitHub
commit b252f8ebc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# 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