lrt/lart helpers
authorJoerg Jaspert <joerg@debian.org>
Mon, 3 Apr 2017 20:48:59 +0000 (22:48 +0200)
committerJoerg Jaspert <joerg@debian.org>
Mon, 3 Apr 2017 20:48:59 +0000 (22:48 +0200)
.zsh/functions/lart [new file with mode: 0644]
.zsh/functions/lrt [new file with mode: 0644]

diff --git a/.zsh/functions/lart b/.zsh/functions/lart
new file mode 100644 (file)
index 0000000..14aada0
--- /dev/null
@@ -0,0 +1,4 @@
+lart() {
+    ls -lart "$@"
+    lart="$(ls -rta "$@" | tail -n1)"
+}
\ No newline at end of file
diff --git a/.zsh/functions/lrt b/.zsh/functions/lrt
new file mode 100644 (file)
index 0000000..855fb26
--- /dev/null
@@ -0,0 +1,4 @@
+lrt() {
+    ls -lrt "$@"
+    lrt="$(ls -rt "$@" | tail -n1)"
+}