Skip to content

Instantly share code, notes, and snippets.

@lstor
Last active January 12, 2018 16:37
Show Gist options
  • Save lstor/d1bce2bdcde593b0214af60814fe5db3 to your computer and use it in GitHub Desktop.
Save lstor/d1bce2bdcde593b0214af60814fe5db3 to your computer and use it in GitHub Desktop.
Colorful motd with hostname and last logins
# 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