aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2011-10-08 17:56:08 +0300
committerMathias Bynens <mathias@qiwi.be>2011-10-08 17:56:08 +0300
commit3d2532beb0547a6c5a926d118a4441e8b5bf35d0 (patch)
treed0513fec7e0423f6c0fde2354a282af7b918aca0 /.functions
parentce82a1814a9c950bfef5cea26655247ffb375d58 (diff)
downloaddotfiles-3d2532beb0547a6c5a926d118a4441e8b5bf35d0.tar.gz
dotfiles-3d2532beb0547a6c5a926d118a4441e8b5bf35d0.tar.bz2
dotfiles-3d2532beb0547a6c5a926d118a4441e8b5bf35d0.zip
Make the `json()` function more generic by allowing any JSON string instead of just JSON URLs.
Diffstat (limited to '.functions')
-rw-r--r--.functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/.functions b/.functions
index 62b69ef..62d970d 100644
--- a/.functions
+++ b/.functions
@@ -10,7 +10,7 @@ function httpcompression() {
}
function json() {
- curl "$*" | python -mjson.tool | pygmentize -l javascript
+ python -mjson.tool <<< "$*" | pygmentize -l javascript
}
# All the dig info