Skip to content

Instantly share code, notes, and snippets.

@devrusty
Created January 15, 2023 17:46
Embed
What would you like to do?
A bash script that shows a certain pony using ponysay.
# written by github:devrusty
# January, 15, 2023
PONY=twilight;
MSG="close this window for more PONY";
COUNT=10;
PONIES=("Twilight" "Applejack" "Pinkie" "Fluttershy" "Rarity" "Rainbow Dash" "Celestia" "Luna" "Cadance" "Flurryheart");
function createPonyWindow {
xterm -bg black -hold -e ponysay -f $PONY $MSG;
}
for pony in ${PONIES[@]};
do
PONY=$pony;
echo $PONY;
createPonyWindow;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment