Skip to content

Instantly share code, notes, and snippets.

@compscitwilight
Created January 15, 2023 17:46
Show Gist options
  • Save compscitwilight/f7945040fd41e8cf6a1216bab283691e to your computer and use it in GitHub Desktop.
Save compscitwilight/f7945040fd41e8cf6a1216bab283691e to your computer and use it in GitHub Desktop.
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