Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

completion for last(1)



This combines the options for versions of Debian, Solaris, and FreeBSD.

Index: Completion/Unix/Command/_last
===================================================================
RCS file: _last
diff -N _last
--- /dev/null	Thu May 24 22:33:05 2001
+++ _last	Mon Jun 25 11:48:35 2001
@@ -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'
Index: Completion/Unix/Type/_users
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_users,v
retrieving revision 1.1
diff -u -r1.1 _users
--- Completion/Unix/Type/_users	2001/04/02 11:43:44	1.1
+++ Completion/Unix/Type/_users	2001/06/25 18:48:35
@@ -1,4 +1,4 @@
-#compdef last passwd groups
+#compdef passwd groups
 
 local expl users
 



Messages sorted by: Reverse Date, Date, Thread, Author