TERM environment variable is set outsite of a tmux session, because tmux sets it automatically in a tmux session.