aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-02-18 13:05:29 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-02-18 13:05:29 +1300
commit495144564313b688258d46969e12df00dc310e62 (patch)
treeee3e656d3e3b6666094672f3c6f20ac09598b038 /bash
parentUse space before semicolon as command separator (diff)
downloaddotfiles-495144564313b688258d46969e12df00dc310e62.tar.gz
dotfiles-495144564313b688258d46969e12df00dc310e62.zip
Add handy cURL function
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/curl.bash6
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' "$@"
+}
+