diff options
Diffstat (limited to 'etc/htmlopen.sh')
-rwxr-xr-x | etc/htmlopen.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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" & |