Skip to content

Instantly share code, notes, and snippets.

@boredzo
Last active July 21, 2018 17:47
Show Gist options
  • Save boredzo/6d72a1fef035ab05be5759f4cb1d1adb to your computer and use it in GitHub Desktop.
Save boredzo/6d72a1fef035ab05be5759f4cb1d1adb to your computer and use it in GitHub Desktop.
A shell script to display SEE YOU SPACE COWBOY whenever you logout of your terminal!
#!/usr/bin/env bash
# SEE YOU SPACE COWBOY by DANIEL REHN (danielrehn.com)
# Displays a timeless message in your terminal with cosmic color effects
# Usage: add "sh ~/seeyouspacecowboy.sh; sleep 2" to .bash_logout (or similar) in your home directory
# (adjust the sleep variable to display the message for more seconds)
# Cosmic color sequence
ESC_SEQ="\x1b[38;5;"
COL_01=$ESC_SEQ"160;01m"
COL_02=$ESC_SEQ"196;01m"
COL_03=$ESC_SEQ"202;01m"
COL_04=$ESC_SEQ"208;01m"
COL_05=$ESC_SEQ"214;01m"
COL_06=$ESC_SEQ"220;01m"
COL_07=$ESC_SEQ"226;01m"
COL_08=$ESC_SEQ"190;01m"
COL_09=$ESC_SEQ"154;01m"
COL_10=$ESC_SEQ"118;01m"
COL_11=$ESC_SEQ"046;01m"
COL_12=$ESC_SEQ"047;01m"
COL_13=$ESC_SEQ"048;01m"
COL_14=$ESC_SEQ"049;01m"
COL_15=$ESC_SEQ"051;01m"
COL_16=$ESC_SEQ"039;01m"
COL_17=$ESC_SEQ"027;01m"
COL_18=$ESC_SEQ"021;01m"
COL_19=$ESC_SEQ"021;01m"
COL_20=$ESC_SEQ"057;01m"
COL_21=$ESC_SEQ"093;01m"
RESET="\033[m"
# Timeless message
printf "$COL_01 ◢ ███◣ ██████████ ██████████ ◥ ◣ ◢ █◤ ◢ ████◣ ██ ███ \n"
printf "$COL_02 ◢ █◤ ◥ ◣ ███ ███ ◥ ◣ ◢ █◤ ◢ █◤ ◥ █◣ ██ ███ \n"
printf "$COL_03 ◥ ██◣ ███████ ███████ ◥ ███◤ ███ ███ ██ ███ \n"
printf "$COL_04 ◥ █◣ ███ ███ ███ ███ ███ ██ ███ \n"
printf "$COL_05 ◥██◣ ███ ███ ███ ███ ███ ██ ███ \n"
printf "$COL_06""◥ ◣ ◢██◤ ███ ███ ███ ◥ ◣ ◢ █◤ ◥ ◣ ◢ █◤ \n"
printf "$COL_07 ◥ ████◤ ██████████ ██████████ ███ ◥ ████◤ ◥ ███◤ \n"
printf "$COL_08 ◢ ███◣ ██████◣ ◢ ██ ◢ ███◣ ██████████ \n"
printf "$COL_09 ◢ █◤ ◥ ◣ ███ ◥ ◣ ◢ ████ ◢ █◤ ◥ ◣ ███ \n"
printf "$COL_10 ◥ ██◣ ███ ◢ █◤ ◢ ██◤ ███ ███ ███████ \n"
printf "$COL_11 ◥ █◣ ███████◤ ◢ ██◤ ███ ███ ███ \n"
printf "$COL_12 ◥██◣ ███ ◢ ██◤ ███ ███ ███ \n"
printf "$COL_13""◥ ◣ ◢██◤ ███ ◢ █████████████ ◥ ◣ ◢ █◤ ███ \n"
printf "$COL_14 ◥ ████◤ ███ ◢ █◤ ███ ◥ ████◤ ██████████ \n"
printf "$COL_15 ◢ ███◣ ◢ ████◣ ███ ███ █████◣ ◢ ████◣ ◥ ◣ ◢ █◤ \n"
printf "$COL_16 ◢ █◤ ◥ ◣ ◢ █◤ ◥ █◣ ███ ███ ███ ◥ ◣ ◢ █◤ ◥ █◣ ◥ ◣ ◢ █◤ \n"
printf "$COL_17 ███ ███ ███ ███ ◢ ◣ ███ ███████◤ ███ ███ ◥ ███◤ \n"
printf "$COL_18 ███ ███ ███ ███◢ ████◣ ███ ███ ◥ █◣ ███ ███ ███ \n"
printf "$COL_19 ███ ███ ███ ████◤ ◥ ████ ███ ███ ███ ███ ███ \n"
printf "$COL_20 ◥ ◣ ◢ █◤ ◥ ◣ ◢ █◤ ██◤ ◥ ██ ███ ◢ █◤ ◥ ◣ ◢ █◤ ███ \n"
printf "$COL_21 ◥ ████◤ ◥ ████◤ ◤ ◥ ██████◤ ◥ ████◤ ███\n"
printf "$RESET" # Reset colors to "normal"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment