Last active
January 12, 2018 16:37
-
-
Save lstor/d1bce2bdcde593b0214af60814fe5db3 to your computer and use it in GitHub Desktop.
Colorful motd with hostname and last logins
This file contains 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
# Make sure to install 'figlet' and 'lolcat' and | |
# update their path in the script as necessary | |
if [ -z "$TMUX" ]; then | |
{ | |
echo -e "\nWelcome to..." | |
/usr/bin/figlet -f slant " `/bin/hostname -s`" | |
echo "List of last logins: " | |
/usr/bin/last | head -n 5 | |
} | /usr/games/lolcat | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment