session: make terminal setup for session configurable