bashrc & zshrc: add alias to use curl instead of wget.

This commit is contained in:
Mika Suomalainen 2012-08-20 14:09:22 +03:00
parent 863077f47a
commit 6f1cd0e105
2 changed files with 6 additions and 0 deletions

3
bashrc
View File

@ -327,6 +327,9 @@ alias myip="curl -s http://icanhazip.com"
alias myip4="curl -s4 http://icanhazip.com"
alias myip6="curl -s6 http://icanhazip.com"
# Curl instead of wget with warning
alias wget="echo Running curl -LO instead of wget && curl -LO "
# Allow custom aliases to be put in .aliases or .bash_aliases .
# .aliases

3
zshrc
View File

@ -276,6 +276,9 @@ alias myip="curl -s http://icanhazip.com"
alias myip4="curl -s4 http://icanhazip.com"
alias myip6="curl -s6 http://icanhazip.com"
# Curl instead of wget with warning
alias wget="echo Running curl -LO instead of wget && curl -LO "
# .aliases
if [ -f ~/.aliases ]; then
source ~/.aliases