Created
May 25, 2025 22:10
-
-
Save altercation/ca1e9ad8e2c5fac81e283e2522ebba2a to your computer and use it in GitHub Desktop.
Pretty /etc/motd.sh message of the day banner for my remote systems
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
#!/usr/bin/env zsh | |
divider="${(l:59::-:)}" | |
hostname="$(/usr/bin/figlet -f lean $HOST:u)" | |
banner="${divider}\n${hostname%[^[:print:]]*}\n${divider}" | |
location="LOCATION: FREMONT * CALIFORNIA * USA ~~> 37.5° N 121.9° W" | |
echo -e "\n${location}" | |
echo ${banner} | /usr/bin/lolcat | |
echo -n "System "; /usr/bin/uptime --pretty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment