From f3c021182409cada6de593b9aa9566afd4911aef Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sat, 18 Aug 2012 11:57:20 +0300 Subject: [PATCH] bashrc & zshrc: use icanhazip.com instead of cadoth & mute curl. --- bashrc | 6 +++--- zshrc | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/bashrc b/bashrc index fb7f1eae..8ef6f7e5 100644 --- a/bashrc +++ b/bashrc @@ -323,9 +323,9 @@ alias gpg-key-count="gpg --export -a|gpg --import" alias follow="tail -f " #myip shows current IP. This was a function. -alias myip="curl http://cadoth.net/~mkaysi/IP.php" -alias myip4="curl -4 http://cadoth.net/~mkaysi/IP.php" -alias myip6="curl -6 http://cadoth.net/~mkaysi/IP.php" +alias myip="curl -s http://icanhazip.com" +alias myip4="curl -s4 http://icanhazip.com" +alias myip6="curl -s6 http://icanhazip.com" # Allow custom aliases to be put in .aliases or .bash_aliases . diff --git a/zshrc b/zshrc index 492e9729..022db691 100644 --- a/zshrc +++ b/zshrc @@ -272,10 +272,9 @@ alias gpg-key-count="gpg --export -a|gpg --import" alias follow="tail -f " #myip shows current IP. This was a function. -alias myip="curl http://cadoth.net/~mkaysi/IP.php" -alias myip4="curl -4 http://cadoth.net/~mkaysi/IP.php" -alias myip6="curl -6 http://cadoth.net/~mkaysi/IP.php" - +alias myip="curl -s http://icanhazip.com" +alias myip4="curl -s4 http://icanhazip.com" +alias myip6="curl -s6 http://icanhazip.com" # .aliases if [ -f ~/.aliases ]; then