-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmailcap
More file actions
18 lines (14 loc) · 746 Bytes
/
mailcap
File metadata and controls
18 lines (14 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Mailcap: mainly used for viewing attachments in (Neo)Mutt
# So that HTML can render automatically in email
text/html; w3m -v -F -o display_link_number=1 -I %{charset} -config /Users/alex/.config/w3m/config -T text/html %s; copiousoutput
# Need a pager that doesn't quit automatically for plaintext
text/plain; LESS="-Ric" less
# Preview contents of tgz files
application/x-tar-gz; tar tzf %s | less -R
# Open pgp signatures as text
application/pgp-signature; LESS="-Ric" less
application/pdf; setsid -f /Applications/sioyek.app/Contents/MacOS/sioyek %s
# Use the `opener` script for everything else
image/*; setsid -f opener %s >/dev/null 2>&1
video/*; setsid -f opener %s >/dev/null 2>&1
application/*; setsid -f opener %s >/dev/null 2>&1