Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 995 Bytes

README.md

File metadata and controls

40 lines (22 loc) · 995 Bytes

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].