summaryrefslogtreecommitdiff
path: root/bash-completion/setsid
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2013-04-05 14:58:07 +0200
committerKarel Zak <kzak@redhat.com>2013-04-05 14:58:07 +0200
commit20da58084a68b118b15fa01228192463b61fa28f (patch)
tree07beea113d5a68749264ad59e4d17fbc4bf9fe1d /bash-completion/setsid
parentaead7c7e690ab019e0706f228a226b8c17eeab38 (diff)
downloadutil-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/setsid17
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