From e2459f903281c4b8e30af7ed610aa2e823016de3 Mon Sep 17 00:00:00 2001 From: Meutel Date: Mon, 21 Aug 2017 18:50:31 +0200 Subject: [PATCH] Portable myip --- _bash_aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_bash_aliases b/_bash_aliases index 3d21bb9..272f0d2 100644 --- a/_bash_aliases +++ b/_bash_aliases @@ -58,4 +58,4 @@ alias reboot='sudo reboot' alias poweroff='sudo poweroff' alias vm='sudo vm' -alias myip='dig +short myip.opendns.com @resolver1.opendns.com' +alias myip="host -4 myip.opendns.com resolver1.opendns.com | sed -n 's/myip\.opendns\.com has address \(.*\)$/\1/p'"