Created
January 23, 2022 12:55
-
-
Save hidsh/8811c232f6d6d61d935489f5dd601068 to your computer and use it in GitHub Desktop.
My motd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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