]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/setsid
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / setsid
CommitLineData
c6f8c3f5
SK
1_setsid_module()
2{
d4f9b8d7 3 local cur prev OPTS
c6f8c3f5
SK
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
d4f9b8d7
VS
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
8 '-h'|'--help'|'-V'|'--version')
9 return 0
10 ;;
11 esac
c6f8c3f5
SK
12 case $cur in
13 -*)
d092911b 14 OPTS="--ctty --wait --help --version"
c6f8c3f5
SK
15 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
16 return 0
17 ;;
18 esac
19 compopt -o bashdefault
20 COMPREPLY=( $(compgen -c -- $cur) )
21 return 0
22}
23complete -F _setsid_module setsid