rwx/sh/alias/ls.sh

33 lines
442 B
Bash
Raw Normal View History

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