diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-12-18 11:11:13 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-12-18 11:11:14 +0800 |
commit | 5f269f6119a311129466211ba27e48956c16ef2d (patch) | |
tree | a9880d26fe02271a903e7a747f7d9d158210daf0 /mutt | |
parent | 4a3f809568b581085b959b5d6cc21d0601e69422 (diff) |
mutt: mailcap
Diffstat (limited to 'mutt')
-rw-r--r-- | mutt/default | 2 | ||||
-rw-r--r-- | mutt/mailcap | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mutt/default b/mutt/default index 6aa58e1..9c0f7e0 100644 --- a/mutt/default +++ b/mutt/default | |||
@@ -1,5 +1,5 @@ | |||
1 | # Edit rc file and source it. This is the most important thing | 1 | # Edit rc file and source it. This is the most important thing |
2 | macro index,browser \Cv ":set wait_key=no<Return>!$EDITOR ~/.config/mutt/muttrc<Return>:source ~/.config/mutt/muttrc<Return>:set wait_key=yes<Return>" | 2 | macro index,browser,attach \Cv ":set wait_key=no<Return>!$EDITOR ~/.config/mutt/muttrc<Return>:source ~/.config/mutt/muttrc<Return>:set wait_key=yes<Return>" |
3 | 3 | ||
4 | # Connection options | 4 | # Connection options |
5 | set ssl_force_tls = yes | 5 | set ssl_force_tls = yes |
diff --git a/mutt/mailcap b/mutt/mailcap index 2899a40..1a44cfa 100644 --- a/mutt/mailcap +++ b/mutt/mailcap | |||
@@ -1,5 +1,6 @@ | |||
1 | text/plain; vim '%s' | ||
2 | text/html; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; | ||
1 | text/html; w3m -I %{charset} -T text/html; copiousoutput; | 3 | text/html; w3m -I %{charset} -T text/html; copiousoutput; |
2 | text/plain; surf '%s'; test=test -n "$DISPLAY"; needsterminal; | ||
3 | application/json; jq . %s | less -N; copiousoutput; | 4 | application/json; jq . %s | less -N; copiousoutput; |
4 | application/pdf; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; | 5 | application/pdf; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; |
5 | application/octet-stream; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; | 6 | application/octet-stream; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; |