diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-18 13:05:29 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-18 13:05:29 +1300 |
commit | 495144564313b688258d46969e12df00dc310e62 (patch) | |
tree | ee3e656d3e3b6666094672f3c6f20ac09598b038 /bash | |
parent | Use space before semicolon as command separator (diff) | |
download | dotfiles-495144564313b688258d46969e12df00dc310e62.tar.gz dotfiles-495144564313b688258d46969e12df00dc310e62.zip |
Add handy cURL function
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/curl.bash | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bash/bashrc.d/curl.bash b/bash/bashrc.d/curl.bash new file mode 100644 index 00000000..6265cd10 --- /dev/null +++ b/bash/bashrc.d/curl.bash @@ -0,0 +1,6 @@ +# Shortcut to make HEAD requests with cURL; good for testing webpage +# compression and caching headers +curlh() { + curl -IH 'Accept-Encoding: gzip,deflate' "$@" +} + |