diff options
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() { |