modified: README.md

modified:   curl.plugin.zsh
This commit is contained in:
Ismael Puerto 2015-02-25 17:42:41 +01:00
parent 7a66bab43d
commit d78e5c2f90
2 changed files with 13 additions and 1 deletions

View File

@ -2,4 +2,11 @@
## Functions explained
* curlj - pretty json (require Python 2.6)
## Aliases explained
* curlh - show header only
* curls - download filename
* curlt - show response time in milliseconds
* curlrc - show http code

View File

@ -1,5 +1,10 @@
alias jcurl=jsoncurl
alias curlj=jsoncurl
function jsoncurl()
{
curl -s $1 |python -m json.tool
}
alias curlh="curl -siv -o /dev/null"
alias curls="curl -O"
alias curlt="curl -o /dev/null -s -w %{time_total}'\\n'"
alias curlrc="curl -s -o /dev/null -w %{http_code}'\\n'"