Created
November 2, 2020 17:40
-
-
Save giuliano-macedo/e5e378d3f79252888e4ef70ad6afe929 to your computer and use it in GitHub Desktop.
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.
This file contains hidden or 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
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