From 7918a3c33628d1e89d97b1770e132911b7c4461f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 03:47:24 +0100 Subject: [PATCH] lt,ltt --- shell/alias/ls.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/shell/alias/ls.sh b/shell/alias/ls.sh index 75eb5a5..8be2be0 100644 --- a/shell/alias/ls.sh +++ b/shell/alias/ls.sh @@ -9,6 +9,20 @@ l() { --color \ -l \ -p \ + "${@}" +} + +# list timestamps +lt() { + l \ --time-style "+%Y%m%d-%H%M%S%-:::z" \ "${@}" } + +# list timestamps recent last +ltt() { + l \ + --reverse \ + -t \ + "${@}" +}