diff options
author | Oliver Kiddle <opk@zsh.org> | 2015-06-02 00:52:11 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2015-06-02 00:52:11 +0200 |
commit | 52cace80567dc53fa8d32f3664b524b5e8ec905b (patch) | |
tree | f377e740b33e20fb22f559543db19b387b254339 /Completion/Unix/Command/_last | |
parent | 72ecc2ef36b203175aad3f6dd4b76e474a82d8b6 (diff) | |
download | zsh-52cace80567dc53fa8d32f3664b524b5e8ec905b.tar.gz zsh-52cace80567dc53fa8d32f3664b524b5e8ec905b.tar.xz zsh-52cace80567dc53fa8d32f3664b524b5e8ec905b.zip |
35356: factor out completion of tty devices
Diffstat (limited to 'Completion/Unix/Command/_last')
-rw-r--r-- | Completion/Unix/Command/_last | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_last b/Completion/Unix/Command/_last index 706d82f26..f198e0fff 100644 --- a/Completion/Unix/Command/_last +++ b/Completion/Unix/Command/_last @@ -9,7 +9,7 @@ for pattern arg in \ '((free|net|open)bsd*|darwin*|dragonfly*|linux-gnu)' '-h[limit sessions by hostname]:host:_hosts' \ '((free|open)bsd*|linux-gnu)' '-s[report duration in seconds]' \ '(freebsd*|openbsd*)' '-d[limit sessions to those active at snapshot time]:time ([[CC]YY][MMDD]hhmm[.SS])' \ - '((net|free|open)bsd*|darwin*|dragonfly*)' '-t[limit sessions by tty]:tty:compadd -a ttys' \ + '((net|free|open)bsd*|darwin*|dragonfly*)' '-t[limit sessions by tty]:tty:_ttys -D' \ 'openbsd*' '-c[calculate total time]' \ '^darwin*' '-f[specify account file]:file:_files' \ '(solaris*|linux-gnu|freebsd*|openbsd*)' '-n[specify number of lines to show]:number' \ @@ -45,7 +45,7 @@ case $OSTYPE in esac if [[ $OSTYPE = (linux-gnu|solaris*) ]]; then - args+=( '*:arg: _alternative "users:user:_users" "ttys:tty:compadd -a ttys"' ) + args+=( '*:arg: _alternative "users:user:_users" "ttys:tty:_ttys -d" "ttys:tty:(reboot)"' ) else args+=( '*:user:_users' ) fi |