Skip to content

Instantly share code, notes, and snippets.

@louipc
Created April 25, 2022 20:10
Show Gist options
  • Select an option

  • Save louipc/3982a5331b5ab88cc3cc2c9a61179258 to your computer and use it in GitHub Desktop.

Select an option

Save louipc/3982a5331b5ab88cc3cc2c9a61179258 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Wavy thing.
# ,.'`'.,.'`'.,.'`'.,.'`'.,.'`'.,.'`'.,
if [ "$1" = "wave" ]; then
cycle=", . ' \` ' ."
while true
do
for char in ${cycle}
do
echo -n $char
sleep .1
done
done
fi
# Spinner
if [ "$1" = "spinner" ]; then
while true
do
echo -n ' '
for i in / - \\ \|; do
echo -en "\b$i"
sleep .3
done
echo -en "\b"
done
fi
# Grower
if [ "$1" = "grower" ]; then
limit=5
while true
do
echo -n '='
for i in {1..50}; do
echo -en "="
sleep .05
done
for i in {1..50}; do
echo -en "\b \b"
sleep .05
done
echo -en "\b"
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment