diff options
Diffstat (limited to 'completions/timeout')
-rw-r--r-- | completions/timeout | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/timeout b/completions/timeout index ccc66ae7..b5851baa 100644 --- a/completions/timeout +++ b/completions/timeout @@ -13,14 +13,14 @@ _timeout() fi found=true fi - [[ ${COMP_WORDS[i]} == -@(k|-kill-after|s|-signal) ]] && ((i++)) + [[ ${COMP_WORDS[i]} == -@(-kill-after|-signal|!(-*)[ks]) ]] && ((i++)) done case $prev in - --help|--version|-k|--kill-after) + --help|--version|--kill-after|-!(-*)k) return ;; - -s|--signal) + --signal|-!(-*)s) _signals return ;; @@ -29,7 +29,7 @@ _timeout() $split && return if [[ $cur == -* ]]; then - COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) [[ $COMPREPLY == *= ]] && compopt -o nospace fi } && |