diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-07-19 17:17:19 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-07-19 17:17:19 -0300 |
commit | 69441f525dde047ac67d476ede715ed38ac2671f (patch) | |
tree | 64d55f41714ddb5522b806835841399e2961faa3 /lib | |
parent | 0ee3a24aa0accb020645171a8368635ef5b181e6 (diff) | |
download | hydra-69441f525dde047ac67d476ede715ed38ac2671f.tar.gz hydra-69441f525dde047ac67d476ede715ed38ac2671f.tar.bz2 |
Minor bash completion enhancements
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/completions/bash | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/hydra/completions/bash b/lib/hydra/completions/bash index a416c78..b03f666 100644 --- a/lib/hydra/completions/bash +++ b/lib/hydra/completions/bash @@ -21,11 +21,16 @@ _hydra() { # Return the available options COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + [[ $COMPREPLY == */ ]] && compopt -o nospace return 0 } _hydractl() { } +_hydras() { +} + complete -F _hydra hydra +complete -F _hydras hydras complete -F _hydractl hydractl |