diff options
author | Mathias Bynens <mathias@qiwi.be> | 2012-08-27 11:27:47 +0200 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2012-08-27 11:27:47 +0200 |
commit | 1aeba0cba820db7f412536cb8aed30f28ec1a9a8 (patch) | |
tree | c4d9de57973972122f865ad2685f1e97ba14c2e4 /.functions | |
parent | 61748c9999283a85467ead79c0a2ea6a96d4eeba (diff) | |
download | dotfiles-1aeba0cba820db7f412536cb8aed30f28ec1a9a8.tar.gz dotfiles-1aeba0cba820db7f412536cb8aed30f28ec1a9a8.tar.bz2 dotfiles-1aeba0cba820db7f412536cb8aed30f28ec1a9a8.zip |
.aliases: Add `gurl` for Gzip-enabled `curl`
Ref. 1b3ed7a646de7a652f0596985af976a438e32aca.
Diffstat (limited to '.functions')
-rw-r--r-- | .functions | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -66,11 +66,6 @@ function httpcompression() { encoding="$(curl -LIs -H 'User-Agent: Mozilla/5 Gecko' -H 'Accept-Encoding: gzip,deflate,compress,sdch' "$1" | grep '^Content-Encoding:')" && echo "$1 is encoded using ${encoding#* }" || echo "$1 is not using any encoding" } -# Gzip-enabled `curl` -function gurl() { - curl -sH "Accept-Encoding: gzip" "$@" | gunzip -} - # Syntax-highlight JSON strings or files # Usage: `json '{"foo":42}'` or `echo '{"foo":42}' | json` function json() { |