Simple & sexy progress bar for
bash
, give it a duration and it will do the rest.
-
Copy to your code or source:
source ./progress-bar.sh
-
Call with a
duration
:progress-bar 5
ℹ️ Speed can be initially defined by exporting SLEEP_DURATION
.
- I needed one ;
- What I found was too ugly and too complicated ;
- I wanted a good UX ;
- Check-out similar projects' source code and you'll understand.
Requirements: bats
.
$ bats ./tests.bats
MIT [email protected].