Skip to content

Instantly share code, notes, and snippets.

@bitmvr
Last active June 17, 2018 16:53
Show Gist options
  • Save bitmvr/ab0d7d24a3b0ed61e7d85ddd7b4ba0c7 to your computer and use it in GitHub Desktop.
Save bitmvr/ab0d7d24a3b0ed61e7d85ddd7b4ba0c7 to your computer and use it in GitHub Desktop.
A simple pride flag written in Bash.
#!/usr/bin/env bash
# Requires terminal capable of 265 color
line=$(printf ' %.0s' {1..50})
paintBucket=( '196' '214' '226' '28' '27' '90' )
echo ""
for paint in "${paintBucket[@]}"; do
swipe=1
while [ $swipe -le 2 ]; do
printf "\\033[48;5;${paint}m${line}\\033[0m\r\n"
((swipe++))
done
done
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment