summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xterm-open8
1 files changed, 7 insertions, 1 deletions
diff --git a/term-open b/term-open
index e61c7fc..d47367c 100755
--- a/term-open
+++ b/term-open
@@ -1,10 +1,16 @@
#!/bin/bash
+logger "Running term-open with args: $*"
+
cmd=$1; shift
term=termite
if [[ $cmd = "mutt" ]]; then
- exec termite -e "mutt -e 'set autoedit=yes' -- $*"
+ if [[ "$*" = 'mailto:?'* ]]; then
+ exec termite -e "mutt -- $*"
+ else
+ exec termite -e "mutt -e 'set autoedit=yes' -- $*"
+ fi
fi
exec termite -e "$cmd -- $*"