From 41ca1b08f8113fdc10a6d017ebc6a4e1a9171483 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 18 Nov 2024 16:24:54 +0100 Subject: [PATCH] ls --- sh/alias/ls.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sh/alias/ls.sh b/sh/alias/ls.sh index da0d1bc..f464b3a 100644 --- a/sh/alias/ls.sh +++ b/sh/alias/ls.sh @@ -3,7 +3,8 @@ di=0;94\ " # list current directory’s entries -l() { +l() { sh_a__ls "${@}"; } +sh_a__ls() { ls \ --all \ --color \ @@ -14,15 +15,17 @@ l() { } # list timestamps -lt() { - l \ +lt() { sh_a__ls_time "${@}"; } +sh_a__ls_time() { + sh_a__ls \ --time-style "+%Y%m%d-%H%M%S%-:::z" \ "${@}" } # list timestamps recent last -ltt() { - lt \ +ltr() { sh_a__ls_time_reverse "${@}"; } +sh_a__ls_time_reverse() { + sh_a__ls_time \ --reverse \ -t \ "${@}"