Skip to content

Instantly share code, notes, and snippets.

@damirka
Last active December 5, 2019 14:16
Show Gist options
  • Save damirka/ac29f624e103bef19815d7fe38c7d305 to your computer and use it in GitHub Desktop.
Save damirka/ac29f624e103bef19815d7fe38c7d305 to your computer and use it in GitHub Desktop.
Fancy GitHub Zen message on terminal start. Add this to your .bashrc or .bash_profile to receive inspiring message on every terminal start!
# Fancy Github message on terminal start (if network is up, otherwise nothing will happen)
echo -e "GET http://google.com HTTP/1.0\n\n" | nc google.com 80 > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo;
/usr/bin/curl https://api.github.com/zen
echo; echo;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment