From cce09ab3312aaab321597756f627472f966a39f8 Mon Sep 17 00:00:00 2001 From: Brad Ganley Date: Thu, 15 Jul 2021 12:30:37 -0500 Subject: [PATCH] Added external ip function to bash aliases --- .bash_aliases | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index 4171f9c..2b9ee90 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -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/$@"; }