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