Added external ip function to bash aliases

Former-commit-id: cce09ab331
This commit is contained in:
Brad Ganley
2021-07-15 12:30:37 -05:00
parent 9b047f63a9
commit 3fcea975a7

View File

@@ -34,4 +34,8 @@ nquick (){ sudo nmap -sV -T4 -O -F --version-light $@; }
alias wttr='ansiweather -l belleville,illinois -u imperial -s false'
rtfm() { help $@ || info $@ || man $@ || curl "http://cheat.sh/$@"; }
extip(){ ip=$(curl -s http://api.ipify.org);
echo "Public IP address is $ip"
}
ch() { curl "http://cheat.sh/$@"; }