Skip to content

Instantly share code, notes, and snippets.

@hidsh
Created January 23, 2022 12:55
Show Gist options
  • Save hidsh/8811c232f6d6d61d935489f5dd601068 to your computer and use it in GitHub Desktop.
Save hidsh/8811c232f6d6d61d935489f5dd601068 to your computer and use it in GitHub Desktop.
My motd
#!/bin/sh
# output by `figlet Pi zero'
# try `showfigfonts Pi zero' to choose another font!
echo "\e[33m
____ _ \e[1m\e[32mYou've logged into:\e[33m
| _ \(_) _______ _ __ ___
| |_) | | |_ / _ \ '__/ _ \
| __/| | / / __/ | | (_) |
|_| |_| /___\___|_| \___/
\e[0m" | sudo tee /etc/motd > /dev/null 2>&1
#!/bin/sh
# output by `figlet -f lean Sarah'
# try `showfigfonts Sarah' to choose another font!
#
# The Mac echo command seems to apply escaping differently than that of Linux.
echo $'\e[31m''
_/_/_/ '$'\e[1m'$'\e[34m''You'\''ve logged into:'$'\e[31m'' _/ ''
_/ _/_/_/ _/ _/_/ _/_/_/ _/_/_/
_/_/ _/ _/ _/_/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/ _/
_/_/_/ _/_/_/ _/ _/_/_/ _/ _/
'$'\e[0m' | sudo tee /etc/motd > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment