rwx/sh/alias/ls.sh

33 lines
458 B
Bash
Raw Normal View History

2024-03-15 11:15:57 +00:00
export LS_COLORS="\
di=0;94\
"
2024-11-12 08:43:56 +00:00
# list current directory’s entries
2024-11-18 15:24:54 +00:00
l() { sh_a__ls "${@}"; }
sh_a__ls() {
2024-11-17 02:42:34 +00:00
ls \
--all \
--color \
-l \
-p \
2024-11-17 02:50:00 +00:00
--time-style "+" \
2024-11-17 02:47:24 +00:00
"${@}"
}
# list timestamps
2024-11-18 15:24:54 +00:00
lt() { sh_a__ls_time "${@}"; }
sh_a__ls_time() {
sh_a__ls \
2024-11-17 02:42:34 +00:00
--time-style "+%Y%m%d-%H%M%S%-:::z" \
"${@}"
}
2024-11-17 02:47:24 +00:00
# list timestamps recent last
2024-11-18 15:24:54 +00:00
ltr() { sh_a__ls_time_reverse "${@}"; }
sh_a__ls_time_reverse() {
sh_a__ls_time \
2024-11-17 02:47:24 +00:00
--reverse \
-t \
"${@}"
}