A visually appealing ls command replacement script written in Bash, providing a colorful and informative file listing.
prequisite : Nerd Fonts
installed.
- Open the Terminal and type
curl -o ~/btrls.sh https://raw.githubusercontent.com/Priyanshu-1012/better-ls/master/btrls.sh
- Type
chmod +x ~/btrls.sh
on terminal to grant permission. - Run this command to make an alias for the command and to use it from any location.
echo 'bl(){' >> ~/.bash_aliases && echo ' bash ~/btrls.sh "$@"' >> ~/.bash_aliases && echo '}' >> ~/.bash_aliases
- Restart your terminal and now you can run better-ls by simply typing
bl
command in your terminal
-c flag: sets the number of columns for list formatting. For e.g., bl -c2
formats the list into 2 columns. The default value is 3 columns when no flag is specified.
-a flag: shows hidden files too.
e.g. bl -c5 -a
will show all files and folder(hidden too) in 5 columns
...work in progress