diff options
Diffstat (limited to 'completions/jar')
-rw-r--r-- | completions/jar | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/jar b/completions/jar index c839aa85..22894917 100644 --- a/completions/jar +++ b/completions/jar @@ -5,8 +5,8 @@ _jar() local cur prev words cword _init_completion || return - if [[ $cword -eq 1 ]]; then - COMPREPLY=( $(compgen -W 'c t x u' -- "$cur") ) + if ((cword == 1)); then + COMPREPLY=($(compgen -W 'c t x u' -- "$cur")) return fi @@ -22,6 +22,6 @@ _jar() ;; esac } && -complete -F _jar jar + complete -F _jar jar # ex: filetype=sh |