Skip to content

Instantly share code, notes, and snippets.

@kazuhisya
Created January 14, 2011 01:01
Show Gist options
  • Save kazuhisya/778962 to your computer and use it in GitHub Desktop.
Save kazuhisya/778962 to your computer and use it in GitHub Desktop.
.bashrc
# Refresh motd
/bin/ls /path/to |/bin/grep motd_update.sh > /dev/zero
if [ $? == 0 ] && [ $SHLVL == 1 ] ;then
/path/to/motd_update.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment