Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.22 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.22 KB

better-ls

A visually appealing ls command replacement script written in Bash, providing a colorful and informative file listing.

prequisite : Nerd Fonts installed.

Screenshot from 2023-07-05 00-46-05

How to run

  1. Open the Terminal and type
    curl -o ~/btrls.sh https://raw.githubusercontent.com/Priyanshu-1012/better-ls/master/btrls.sh
  2. Type chmod +x ~/btrls.sh on terminal to grant permission.
  3. 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
  4. Restart your terminal and now you can run better-ls by simply typing bl command in your terminal

Flags

-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