Add "accounting" plugin: User accounting related functions
authorAlexander Barton <alex@barton.de>
Fri, 8 May 2015 23:22:02 +0000 (01:22 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 8 May 2015 23:22:06 +0000 (01:22 +0200)
plugins/accounting/accounting.plugin.zsh [new file with mode: 0644]

diff --git a/plugins/accounting/accounting.plugin.zsh b/plugins/accounting/accounting.plugin.zsh
new file mode 100644 (file)
index 0000000..f86a1dd
--- /dev/null
@@ -0,0 +1,5 @@
+# accounting.plugin.zsh
+# 2015-05-09, alex@barton.de
+
+alias lasth='last | head -n $((LINES-1))'
+alias lastf='last | grep -v "^$LOGNAME"'