about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-06-25 18:52:14 +0000
committerClint Adams <clint@users.sourceforge.net>2001-06-25 18:52:14 +0000
commit4d37e1e5a2d22ae30594a7ecb0bea88e4b80d961 (patch)
tree367d7531c6cae15133c4d4da033cc3acde4e6dac /Completion/Unix/Command
parent1897a361bf68faf47c5d5d0fa662127cbf5c2c95 (diff)
downloadzsh-4d37e1e5a2d22ae30594a7ecb0bea88e4b80d961.tar.gz
zsh-4d37e1e5a2d22ae30594a7ecb0bea88e4b80d961.tar.xz
zsh-4d37e1e5a2d22ae30594a7ecb0bea88e4b80d961.zip
15079: completion for last(1)
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_last17
1 files changed, 17 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_last b/Completion/Unix/Command/_last
new file mode 100644
index 000000000..56537bf84
--- /dev/null
+++ b/Completion/Unix/Command/_last
@@ -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'