diff options
Diffstat (limited to 'completions/medusa')
-rw-r--r-- | completions/medusa | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/medusa b/completions/medusa index f0ca7022..45129879 100644 --- a/completions/medusa +++ b/completions/medusa @@ -15,16 +15,16 @@ _medusa() return ;; -*M) - COMPREPLY=( $(compgen -W "$($1 -d | awk '/^ +\+/ {print $2}' \ - | command sed -e 's/\.mod$//')") ) + COMPREPLY=($(compgen -W "$($1 -d | awk '/^ +\+/ {print $2}' | + command sed -e 's/\.mod$//')")) return ;; esac - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) fi } && -complete -F _medusa medusa + complete -F _medusa medusa # ex: filetype=sh |