feat(bash): pipe lll to less when listing dir

This commit is contained in:
Victor Westerlund 2025-11-04 09:37:35 +01:00
parent b61ae9cedc
commit 4a05d54371
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -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
} }
.. () { .. () {