瀏覽代碼
Update openfile
pull/450/head
JameyBear
4 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key 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" |
|
|
|