-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmailcap
More file actions
17 lines (14 loc) · 753 Bytes
/
mailcap
File metadata and controls
17 lines (14 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Mailcap 101
# - The first entry with a matching MIME type will be executed, * is a wildcard
# - %s will be replaced with the image or video url
# - Add ``test=test -n "$DISPLAY"`` if your command opens a new window
# - Add ``needsterminal`` for commands that use the terminal
# - Add ``copiousoutput`` for commands that dump text to stdout
text/html; $BROWSER %s
text/html; elinks -dump; copiousoutput;
# type/type; mutt_bgrun viewer [options] %s
# Supposed to work with lesspipe.sh
text/*; LESSQUIET=1 lesspipe.sh '%s'; copiousoutput
application/*; LESSQUIET=1 lesspipe.sh '%s'; copiousoutput
image/*; LESSQUIET=1 lesspipe.sh '%s'; copiousoutput
audio/*; LESSQUIET=1 lesspipe.sh '%s'; copiousoutput