diff options
Diffstat (limited to 'completions/_newgrp')
-rw-r--r-- | completions/_newgrp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/_newgrp b/completions/_newgrp index 0f0d3f93..a2dc3eda 100644 --- a/completions/_newgrp +++ b/completions/_newgrp @@ -8,12 +8,12 @@ _newgrp() local cur prev words cword _init_completion || return - if [[ "$cur" == "-" ]]; then - COMPREPLY=( - ) + if [[ $cur == "-" ]]; then + COMPREPLY=(-) else _allowed_groups "$cur" fi } && -complete -F _newgrp newgrp + complete -F _newgrp newgrp # ex: filetype=sh |