Skip to content

A visually appealing 'ls' command replacement written in Bash

License

Notifications You must be signed in to change notification settings

Priyanshu-1012/better-ls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A visually appealing 'ls' command replacement written in Bash

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages