lsr basically ls but with colorization and sorting for better readability.
It offers filtering options, making it easy to
locate specific files and folders (with grep you'll find exactly what you need)
It can even display the directory contents in a tree-like structure!
Note
If you want to disable the nerdfonts symbols remove the
-DLASER_NF_SYMBOLS flag from the Makefile under the variable LASER_DEFINES
before compiling.
Clone the repository:
git clone https://github.com/jmattaa/laser.git
cd laserInstall system-wide:
sudo make installTo uninstall you can run
sudo make uninstallAfter installing you can run laser in your current directory by simply running:
lsr
# or for a specific directory run:
lsr some-directoryThe command-line options can be added by passing flags. These flags can be put before or after the directory you want to search, if there is no directory you can directly pass in the flags.
-aor--allshows hidden files-Dor--Directoriesshows only directories-For--Filesshows only files-Sor--Symlinksshows only symlinks-Gor--Gitshows only the entries that are not named in.gitignore(works only if there exists a.gitignore)-ror--recursiveshows directory tree structure
The flags can be chained for example using:
lsr -Dar # this will show all directories including hidden ones recursivly
lsr -GDS # this will only show directories (not hidden) and symlinks that are not mentioned in .gitignore