Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
some common custom shell commands i use, you can add to your home directory and add "source custom_commands.sh" on your .bashrc file to add them.
function notify_when_online(){
host=$1
while true; do
ping -c1 $host > /dev/null && break;
done && notify-send --icon=dialog-information "$host is online"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment