diff options
author | Karel Zak <kzak@redhat.com> | 2013-04-05 14:58:07 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2013-04-05 14:58:07 +0200 |
commit | 20da58084a68b118b15fa01228192463b61fa28f (patch) | |
tree | 07beea113d5a68749264ad59e4d17fbc4bf9fe1d /bash-completion/setsid | |
parent | aead7c7e690ab019e0706f228a226b8c17eeab38 (diff) | |
download | util-linux-20da58084a68b118b15fa01228192463b61fa28f.tar.gz |
bash-completion: rename shell-completion -> bash-completion
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'bash-completion/setsid')
-rw-r--r-- | bash-completion/setsid | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bash-completion/setsid b/bash-completion/setsid new file mode 100644 index 000000000..dcefc2f05 --- /dev/null +++ b/bash-completion/setsid @@ -0,0 +1,17 @@ +_setsid_module() +{ + local cur OPTS + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + case $cur in + -*) + OPTS="-c --ctty -h --help -V --version" + COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) + return 0 + ;; + esac + compopt -o bashdefault + COMPREPLY=( $(compgen -c -- $cur) ) + return 0 +} +complete -F _setsid_module setsid |