Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

DevelopersToolbox/bash-spinner

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

108 Commits
108 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevelopersToolbox logo
Github Build Status License Created
Release Released Commits since release

Overview

Display a small progress spinner in bash while running your commands with optional message.

This can be used for anything that takes time.

Simple (Static) Example

This example passes a static string to start_spinner which remains in place until stop_spinner is called.

source spinner.sh

start_spinner "This is my cool spinner message"
sleep 10

stop_spinner

Dynamic Example

This example passes a command to start_spinner_eval which will be re-evaluated each time the spinner is drawn until stop_spinner is called.

source spinner.sh

start_spinner_eval 'cat log | tail -1'

for i in {1..10}; do
    echo "Iteration number ${i}" >> log
    sleep 1
done

stop_spinner

Config

You can set an environment value called SPINNER_DELAY to change the default (0.25 seconds) delay used when drawing the spinner.


About

Display a small progress spinner in bash while running your commands with optional message.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.