From 69441f525dde047ac67d476ede715ed38ac2671f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 19 Jul 2013 17:17:19 -0300 Subject: Minor bash completion enhancements --- lib/hydra/completions/bash | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3