Get current IP address from command line

$ alias myip='export IP=`curl -s https://checkip.amazonaws.com`;echo $IP'

Comments