diff --git a/.bash_aliases b/.bash_aliases index 560703f..290cf9c 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -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 } .. () {