summaryrefslogtreecommitdiffstats
path: root/term-open
diff options
context:
space:
mode:
Diffstat (limited to 'term-open')
-rwxr-xr-xterm-open10
1 files changed, 10 insertions, 0 deletions
diff --git a/term-open b/term-open
new file mode 100755
index 0000000..e61c7fc
--- /dev/null
+++ b/term-open
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+cmd=$1; shift
+term=termite
+
+if [[ $cmd = "mutt" ]]; then
+ exec termite -e "mutt -e 'set autoedit=yes' -- $*"
+fi
+
+exec termite -e "$cmd -- $*"