diff options
Diffstat (limited to 'shell-completion/newgrp')
-rw-r--r-- | shell-completion/newgrp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/shell-completion/newgrp b/shell-completion/newgrp new file mode 100644 index 000000000..567c08cfc --- /dev/null +++ b/shell-completion/newgrp @@ -0,0 +1,16 @@ +_newgrp_module() +{ + local cur prev OPTS + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + case $cur in + -*) + OPTS="-V --version -h --help" + COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) + return 0 + ;; + esac + COMPREPLY=( $(compgen -g -- $cur) ) + return 0 +} +complete -F _newgrp_module newgrp |