mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-11-05 01:12:42 +01:00
feat(bash): pipe lll to less when listing dir (#63)
Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/63
This commit is contained in:
parent
b61ae9cedc
commit
c9db2ff61a
1 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ ll () {
|
|||
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 () {
|
||||
# Set target to argument or default to current working directory
|
||||
local target="${1:-$(pwd)}"
|
||||
|
|
@ -90,7 +90,7 @@ lll () {
|
|||
return 1
|
||||
fi
|
||||
|
||||
ls -lah $target
|
||||
ls -lah $target | less
|
||||
}
|
||||
|
||||
.. () {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue