rwx/sh/alias/ls.sh
2024-11-19 09:17:14 +01:00

32 lines
442 B
Bash

export LS_COLORS="\
di=0;94\
"
# list current directory’s entries
l() { sa__ls "${@}"; }
sa__ls() {
ls \
--all \
--color \
-l \
-p \
--time-style "+" \
"${@}"
}
# list timestamps
lt() { sa__ls_time "${@}"; }
sa__ls_time() {
sa__ls \
--time-style "+%Y%m%d-%H%M%S%-:::z" \
"${@}"
}
# list timestamps recent last
ltr() { sa__ls_time_reverse "${@}"; }
sa__ls_time_reverse() {
sa__ls_time \
--reverse \
-t \
"${@}"
}