]> arthur.barton.de Git - ax-zsh.git/commitdiff
std_aliases: Add some aliases for last(1)
authorAlexander Barton <alex@barton.de>
Sat, 18 Jul 2015 02:12:25 +0000 (04:12 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 18 Jul 2015 02:12:25 +0000 (04:12 +0200)
plugins/std_aliases/std_aliases.zshrc

index 11eb89a554e9254761bb68a388530ca8facf0432..5cb4015b269d43c4dd653c4cdae1285d3d45fee8 100644 (file)
@@ -5,3 +5,6 @@ alias ".."="cd .."
 
 alias "ll"="ls -hl"
 alias "l"="ll -a"
+
+alias lasth='last | head -n "$((LINES-1))"'
+alias lastf='last | grep -v "^$LOGNAME"'