mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-11-05 09:22:42 +01:00
feat(bash): pipe lll to less when listing dir
This commit is contained in:
parent
b61ae9cedc
commit
4a05d54371
1 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ ll () {
|
||||||
ls -lah $target
|
ls -lah $target
|
||||||
}
|
}
|
||||||
|
|
||||||
# Edit the contents of a file or list the contents of a directory (with hidden files shown) if that file is not found
|
# Edit the contents of a file or list the contents of a directory (piped to less, with hidden files shown) if that file is not found
|
||||||
lll () {
|
lll () {
|
||||||
# Set target to argument or default to current working directory
|
# Set target to argument or default to current working directory
|
||||||
local target="${1:-$(pwd)}"
|
local target="${1:-$(pwd)}"
|
||||||
|
|
@ -90,7 +90,7 @@ lll () {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ls -lah $target
|
ls -lah $target | less
|
||||||
}
|
}
|
||||||
|
|
||||||
.. () {
|
.. () {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue