Last active
December 5, 2019 14:16
-
-
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!
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
# 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