add condition

execute only when session is launched in an emulated terminal