ls : Add private _ls_dir and _ls_file.

This commit is contained in:
Dmitry Voronin 2023-12-16 17:20:47 +03:00
parent 8a2921f0ec
commit e4e778d544

View file

@ -52,3 +52,13 @@ function la() {
function lla() {
ls -lAhtr --si -- "$@"
}
# List only files.
function _ls_file() {
ls --classify | grep -v \/$
}
# List only dirs.
function _ls_dir() {
ls --classify | grep \/$ | sed -e "s/\/$//"
}