1 2 3 4 5 6 7 8
preexec () { type term_preexec &> /dev/null && term_preexec $* type theme_preexec &> /dev/null && theme_preexec $* } precmd () { type term_precmd &> /dev/null && term_precmd }