]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/wall
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / wall
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 ;;
12 '-g'|'--group')
13 COMPREPLY=( $(compgen -A 'group' -- $cur) )
14 return 0
15 ;;
16 '-h'|'--help'|'-V'|'--version')
17 return 0
18 ;;
19 esac
20 case $cur in
21 -*)
22 OPTS="--group --nobanner --timeout --version --help"
23 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
24 return 0
25 ;;
26 esac
27 local IFS=$'\n'
28 compopt -o filenames
29 COMPREPLY=( $(compgen -f -- $cur) )
30 return 0
31 }
32 complete -F _wall_module wall