rwx/sh/ls.sh
2025-07-27 14:58:22 +02:00

37 lines
437 B
Bash

# list files
# list colors
# * lighter blue for directories
export LS_COLORS="\
di=0;94\
"
# list current directory’s entries
#= l
#| ls
rwx_ls() {
ls \
--all \
--color \
-l \
-p \
--time-style "+" \
"${@}"
}
# list timestamps
#= lt
rwx_ls_time() {
rwx_ls \
--time-style "+%Y%m%d-%H%M%S%-:::z" \
"${@}"
}
# list timestamps recent last
#= ltr
rwx_ls_time_reverse() {
rwx_ls_time \
--reverse \
-t \
"${@}"
}