mutt-wizard/etc/htmlopen.sh
2018-10-07 15:43:44 -04:00

11 lines
180 B
Bash
Executable File

#!/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" &