aboutsummaryrefslogtreecommitdiffhomepage
path: root/mutt
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2022-10-28 20:26:49 +0800
committerHsieh Chin Fan <pham@topo.tw>2022-10-28 20:26:49 +0800
commit14eba4708b51d4aeda98f40fa158f4688cb4ff8f (patch)
tree54215b76dbc7667b9fd3b630be894e6dff1b9d76 /mutt
parent54b82e204ba9f25b24fa866808626c4700c5d4c9 (diff)
Parse JSON in mailcap
Diffstat (limited to 'mutt')
-rw-r--r--mutt/mailcap1
1 files changed, 1 insertions, 0 deletions
diff --git a/mutt/mailcap b/mutt/mailcap
index 04fb49f..e7e7ff3 100644
--- a/mutt/mailcap
+++ b/mutt/mailcap
@@ -1,6 +1,7 @@
1text/html; firefox '%s' &; test=test -n "$DISPLAY"; needsterminal; 1text/html; firefox '%s' &; test=test -n "$DISPLAY"; needsterminal;
2text/html; w3m -I %{charset} -T text/html; copiousoutput; 2text/html; w3m -I %{charset} -T text/html; copiousoutput;
3text/plain; less -N %s; copiousoutput; 3text/plain; less -N %s; copiousoutput;
4application/json; jq . %s | less -N; copiousoutput;
4application/pdf; firefox '%s' 5application/pdf; firefox '%s'
5application/zip; unzip -p '%s' | less -N 6application/zip; unzip -p '%s' | less -N
6image/png; feh '%s' 7image/png; feh '%s'