# check term family.
is_term_family() {
  [ "${TERM}" = "$1" ] || [ "${TERM}" = "$1-*" ]
}
is_tmux() {
  is_term_family tmux || [ -n "${TMUX}" ]
}
is_tmux
