From 94ddfe07026ae86ec87b384aa59790fb834c161e Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 28 Aug 2014 15:23:29 +0300 Subject: [PATCH] bashrc & zshrc: update myip4 --- bashrc | 2 +- zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 46344d25..8be08a57 100644 --- a/bashrc +++ b/bashrc @@ -393,7 +393,7 @@ alias follow="tail -F" #myip shows current IP. This was a function. alias myip="curl -s http://icanhazip.com" -alias myip4="curl -s4 http://icanhazip.com" +alias myip4="dig A +short myip.opendns.com @resolver1.opendns.com" alias myip6="curl -s6 http://icanhazip.com" # Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/ diff --git a/zshrc b/zshrc index 37feb3de..e60b3880 100644 --- a/zshrc +++ b/zshrc @@ -362,7 +362,7 @@ alias follow="tail -F" #myip shows current IP. This was a function. alias myip="curl -s http://icanhazip.com" -alias myip4="curl -s4 http://icanhazip.com" +alias myip4="dig A +short myip.opendns.com @resolver1.opendns.com" alias myip6="curl -s6 http://icanhazip.com" # Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/