Skip to content

Simple & sexy progress bar for `bash`, give it a duration and it will do the rest.

License

Notifications You must be signed in to change notification settings

edouard-lopez/progress-bar.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Progress bar

Simple & sexy progress bar for bash, give it a duration and it will do the rest.

progress-bar.sh in action on light terminal progress-bar.sh in action on dark terminal

Usage

  1. Copy to your code or source:

     source ./progress-bar.sh
    
  2. Call with a duration:

     progress-bar 5
    

ℹ️ Speed can be initially defined by exporting SLEEP_DURATION.

Why?

  1. I needed one ;
  2. What I found was too ugly and too complicated ;
  3. I wanted a good UX ;
  4. Check-out similar projects' source code and you'll understand.

Who use it?

Test

Requirements: bats.

$ bats ./tests.bats

License

MIT [email protected].