]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/ctrlaltdel
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / ctrlaltdel
CommitLineData
c6f8c3f5
SK
1_ctrlaltdel_module()
2{
d4f9b8d7 3 local cur prev
c6f8c3f5 4 COMPREPLY=()
d4f9b8d7
VS
5 cur="${COMP_WORDS[COMP_CWORD]}"
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 if [ $COMP_CWORD -eq 1 ]; then
13 COMPREPLY=( $(compgen -W "hard soft" -- $cur) )
14 fi
15 return 0
16}
17complete -F _ctrlaltdel_module ctrlaltdel