bashrc & zshrc: use icanhazip.com instead of cadoth & mute curl.

This commit is contained in:
nyuszika7h 2012-08-18 11:57:20 +03:00 committed by Mika Suomalainen
parent fa15d03596
commit f3c0211824
2 changed files with 6 additions and 7 deletions

6
bashrc
View File

@ -323,9 +323,9 @@ alias gpg-key-count="gpg --export -a|gpg --import"
alias follow="tail -f " alias follow="tail -f "
#myip shows current IP. This was a function. #myip shows current IP. This was a function.
alias myip="curl http://cadoth.net/~mkaysi/IP.php" alias myip="curl -s http://icanhazip.com"
alias myip4="curl -4 http://cadoth.net/~mkaysi/IP.php" alias myip4="curl -s4 http://icanhazip.com"
alias myip6="curl -6 http://cadoth.net/~mkaysi/IP.php" alias myip6="curl -s6 http://icanhazip.com"
# Allow custom aliases to be put in .aliases or .bash_aliases . # Allow custom aliases to be put in .aliases or .bash_aliases .

7
zshrc
View File

@ -272,10 +272,9 @@ alias gpg-key-count="gpg --export -a|gpg --import"
alias follow="tail -f " alias follow="tail -f "
#myip shows current IP. This was a function. #myip shows current IP. This was a function.
alias myip="curl http://cadoth.net/~mkaysi/IP.php" alias myip="curl -s http://icanhazip.com"
alias myip4="curl -4 http://cadoth.net/~mkaysi/IP.php" alias myip4="curl -s4 http://icanhazip.com"
alias myip6="curl -6 http://cadoth.net/~mkaysi/IP.php" alias myip6="curl -s6 http://icanhazip.com"
# .aliases # .aliases
if [ -f ~/.aliases ]; then if [ -f ~/.aliases ]; then