ls : Add private _ls_dir and _ls_file.
This commit is contained in:
parent
8a2921f0ec
commit
e4e778d544
|
@ -52,3 +52,13 @@ function la() {
|
||||||
function lla() {
|
function lla() {
|
||||||
ls -lAhtr --si -- "$@"
|
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/\/$//"
|
||||||
|
}
|
||||||
|
|
Reference in a new issue