#!/bin/bash cmd=$1; shift term=termite if [[ $cmd = "mutt" ]]; then exec termite -e "mutt -e 'set autoedit=yes' -- $*" fi exec termite -e "$cmd -- $*"