Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can one detect what terminal application is being used? I want the actual application, not TERM env in the question.

I'd like to detect iTerm 2 / so I could set OSX specific keyboard mappings, otherwise PC.

(See ALT+arrow moving between words in ZSH and iTerm 2 )

share|improve this question
You could see if the application is "running" with "ps -ax | grep iTerm" But I am not exactly sure how you would see if it was being "used" – jds May 23 '12 at 15:43
up vote 0 down vote accepted

You need to SSH forward local environment variables, as explained here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.