From 20c014db0955ae6f7075986c5e6c7c8b0d22039c Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 7 Oct 2018 15:43:44 -0400 Subject: better mailcap for html and media --- etc/htmlopen.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 etc/htmlopen.sh (limited to 'etc/htmlopen.sh') diff --git a/etc/htmlopen.sh b/etc/htmlopen.sh new file mode 100755 index 0000000..a0d6c35 --- /dev/null +++ b/etc/htmlopen.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Helps open an HTML file from mutt in a GUI browser without weird side effects. + +file=$(mktemp -u --suffix=.html) + +echo $file +cp "$1" "$file" + +setsid firefox "$file" & -- cgit v1.2.3