summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-11-07 10:24:32 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-11-07 10:24:32 +0100
commit89a1597941fd364ed250b59094a5411822746ba4 (patch)
tree036bc7aa72a49252aea0bc3818ca4e373fdc3691
parent22732b634fb66a20cffa2a15515ff392a02df7ea (diff)
downloadbin-89a1597941fd364ed250b59094a5411822746ba4.tar.gz
bin-89a1597941fd364ed250b59094a5411822746ba4.tar.xz
Add term-open
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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 -- $*"