modified: README.md
modified: curl.plugin.zsh
This commit is contained in:
parent
7a66bab43d
commit
d78e5c2f90
@ -2,4 +2,11 @@
|
|||||||
|
|
||||||
## Functions explained
|
## Functions explained
|
||||||
|
|
||||||
|
* curlj - pretty json (require Python 2.6)
|
||||||
|
|
||||||
## Aliases explained
|
## Aliases explained
|
||||||
|
|
||||||
|
* curlh - show header only
|
||||||
|
* curls - download filename
|
||||||
|
* curlt - show response time in milliseconds
|
||||||
|
* curlrc - show http code
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
alias jcurl=jsoncurl
|
alias curlj=jsoncurl
|
||||||
function jsoncurl()
|
function jsoncurl()
|
||||||
{
|
{
|
||||||
curl -s $1 |python -m json.tool
|
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'"
|
||||||
|
Loading…
Reference in New Issue
Block a user