From 1aeba0cba820db7f412536cb8aed30f28ec1a9a8 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Mon, 27 Aug 2012 11:27:47 +0200 Subject: .aliases: Add `gurl` for Gzip-enabled `curl` Ref. 1b3ed7a646de7a652f0596985af976a438e32aca. --- .functions | 5 ----- 1 file changed, 5 deletions(-) (limited to '.functions') diff --git a/.functions b/.functions index f1c94e6..5cea08b 100644 --- a/.functions +++ b/.functions @@ -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() { -- cgit v1.2.3