sh/shell/alias/ls.sh
2024-11-17 03:50:00 +01:00

29 lines
308 B
Bash

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