Luke Smith
преди 4 години
родител
ревизия
55f810ef69
No known key found for this signature in database
GPG ключ ID: 4C50B54A911F6252
променени са
2 файла, в които са
добавени 2 реда и са
изтрити 1 реда
-
bin/openfile
-
share/mailcap
|
|
@@ -1,7 +1,7 @@ |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
# Helps open a file with xdg-open from mutt in a external program without weird side effects. |
|
|
|
[ $(uname) = "Darwin" ] && opener="open" || opener="setsid xdg-open" |
|
|
|
[ "$(uname)" = "Darwin" ] && opener="open" || opener="setsid xdg-open" |
|
|
|
mkdir -p "/tmp/$USER-mutt-tmp" |
|
|
|
file="/tmp/$USER-mutt-tmp/$(basename "$1")" |
|
|
|
rm -f "$file" |
|
|
|
|
|
@@ -5,3 +5,4 @@ image/*; openfile %s ; |
|
|
|
video/*; setsid mpv --quiet %s &; copiousoutput |
|
|
|
application/pdf; openfile %s ; |
|
|
|
application/pgp-encrypted; gpg -d '%s'; copiousoutput; |
|
|
|
application/pgp-keys; gpg --import '%s'; copiousoutput; |