]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/wall
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / wall
CommitLineData
8884f6d5
SK
1_wall_module()
2{
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
8 '-t'|'--timeout')
9 COMPREPLY=( $(compgen -W "seconds" -- $cur) )
10 return 0
11 ;;
01544c52
JP
12 '-g'|'--group')
13 COMPREPLY=( $(compgen -A 'group' -- $cur) )
14 return 0
15 ;;
d4f9b8d7
VS
16 '-h'|'--help'|'-V'|'--version')
17 return 0
18 ;;
8884f6d5
SK
19 esac
20 case $cur in
21 -*)
e0383e3e 22 OPTS="--group --nobanner --timeout --version --help"
8884f6d5
SK
23 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
24 return 0
25 ;;
26 esac
ce3e6b15 27 local IFS=$'\n'
8884f6d5
SK
28 compopt -o filenames
29 COMPREPLY=( $(compgen -f -- $cur) )
30 return 0
31}
32complete -F _wall_module wall