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

Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/63
This commit is contained in:
Victor Westerlund 2025-11-04 09:38:40 +01:00
parent b61ae9cedc
commit c9db2ff61a

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