Skip to content
Progress bar for the shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Progress bar for the shell

Display a progress bar for $1 seconds.

progress bar

It uses partial Unicode blocks to achieve subcharacter precision.


progress_bar 60
│█████████████████████████████████████████████████████████▌                                  │ 62%

You can time a long task and use it to have an idea of how much longer to wait

time ./    # gives 300 seconds
./ &>/dev/null & progress_bar 300
│███████████████████████████████                                                             │ 31%

It requires a terminal session with unicode locales, for instance

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

Details at Own Your Bits

You can’t perform that action at this time.