bash-completion: update term-utils

scriptreplay:

	Add --maxdelay option.

	Commit: 7f1d483638

setterm:

	Add --resize coption.

	Commit: 5d79599951

write:

	List only users who are online and determine tty based on given user
	name.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2017-04-12 10:48:31 +01:00
parent d092911bcd
commit e4fc3d574c
No known key found for this signature in database
GPG Key ID: A9553245FDE9B739
3 changed files with 5 additions and 7 deletions

View File

@ -5,7 +5,7 @@ _scriptreplay_module()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
case $prev in
'-d'|'--divisor')
'-d'|'--divisor'|'-m'|'--maxdelay')
COMPREPLY=( $(compgen -W "digit" -- $cur) )
return 0
;;
@ -18,6 +18,7 @@ _scriptreplay_module()
OPTS="--timing
--typescript
--divisor
--maxdelay
--version
--help"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )

View File

@ -85,6 +85,7 @@ _setterm_module()
esac
OPTS=" --term
--reset
--resize
--initialize
--cursor
--repeat

View File

@ -11,15 +11,11 @@ _write_module()
esac
case $COMP_CWORD in
1)
COMPREPLY=( $(compgen -u -- $cur) )
COMPREPLY=( $(compgen -W '$(users)' -- $cur) )
return 0
;;
2)
local I TERMS=''
for I in /sys/class/tty/*; do
TERMS+="/dev${I##/sys/class/tty} "
done
COMPREPLY=( $(compgen -W "$TERMS" -- $cur) )
COMPREPLY=( $(compgen -W "$(w -h $prev | awk '{print $2}')" -- $cur) )
return 0
;;
esac