summaryrefslogtreecommitdiffstats
path: root/term-open
blob: d47367c27b3a59abc4c52d811cba454daf552270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

logger "Running term-open with args: $*"

cmd=$1; shift
term=termite

if [[ $cmd = "mutt" ]]; then
	if [[ "$*" = 'mailto:?'* ]]; then
		exec termite -e "mutt -- $*"
	else
		exec termite -e "mutt -e 'set autoedit=yes' -- $*"
	fi
fi

exec termite -e "$cmd -- $*"