From 3d2532beb0547a6c5a926d118a4441e8b5bf35d0 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sat, 8 Oct 2011 17:56:08 +0300 Subject: Make the `json()` function more generic by allowing any JSON string instead of just JSON URLs. --- .functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3