moved bind cmd inside if TERM is real