mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-30 15:02:18 +01:00
15079: completion for last(1)
This commit is contained in:
parent
1897a361bf
commit
4d37e1e5a2
3 changed files with 24 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2001-06-25 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 15079: Completion/Unix/Command/_last,
|
||||
Completion/Unix/Type/_users: last
|
||||
takes other arguments than users.
|
||||
|
||||
2001-06-25 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 15030: Doc/Zsh/grammar.yo, Src/loop.c, Src/parse.c, Src/text.c:
|
||||
|
|
17
Completion/Unix/Command/_last
Normal file
17
Completion/Unix/Command/_last
Normal file
|
@ -0,0 +1,17 @@
|
|||
#compdef last lastb
|
||||
|
||||
_arguments \
|
||||
'-a[display hostname in last column]' \
|
||||
'-n[number]:number' \
|
||||
'-[number]:number' \
|
||||
'-f[filename]:filename:_files' \
|
||||
'-R[suppress display of hostname field]' \
|
||||
'-d[translate IP to hostname]' \
|
||||
'-i[display IP]' \
|
||||
'-o[read old-format wtmp]' \
|
||||
'-x[display shutdown/runlevel entries]' \
|
||||
'-h[hostname]:_hosts' \
|
||||
'-s[report duration in seconds]' \
|
||||
'-t[tty]:tty:' \
|
||||
'-w[widen duration field]' \
|
||||
'*:user:_users'
|
|
@ -1,4 +1,4 @@
|
|||
#compdef last passwd groups
|
||||
#compdef passwd groups
|
||||
|
||||
local expl users
|
||||
|
||||
|
|
Loading…
Reference in a new issue