JameyBear
преди 4 години
committed by
GitHub
родител
ревизия
df7ffcaecd
No known key found for this signature in database
GPG ключ ID: 4AEE18F83AFDEB23
променени са
1 файла, в които са
добавени 1 реда и са
изтрити 1 реда
-
bin/openfile
|
|
@@ -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" |
|
|
|