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'"