diff options
Diffstat (limited to 'completions/unace')
-rw-r--r-- | completions/unace | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/unace b/completions/unace index a58bd6f0..7d6bd424 100644 --- a/completions/unace +++ b/completions/unace @@ -6,15 +6,15 @@ _unace() _init_completion || return if [[ $cur == -* ]]; then - COMPREPLY=( $(compgen -W '-c -c- -f -f- -o -o- -p -y -y-' -- "$cur") ) + COMPREPLY=($(compgen -W '-c -c- -f -f- -o -o- -p -y -y-' -- "$cur")) else - if [[ $cword -eq 1 ]]; then - COMPREPLY=( $(compgen -W 'e l t v x' -- "$cur") ) + if ((cword == 1)); then + COMPREPLY=($(compgen -W 'e l t v x' -- "$cur")) else _filedir ace fi fi } && -complete -F _unace unace + complete -F _unace unace # ex: filetype=sh |