Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I have set my terminal preferences to execute:

 set -o vi 

at startup. The problem is I don't get that command executed when open a new terminal tab.

Is there something like .profile in OS X where I can put that command?

share|improve this question
up vote 24 down vote accepted

The .profile file in MacOSX works exactly how you would expect. Simply create the .profile file in your user directory if it doesn't exist.

share|improve this answer
Ooohhh!!! Thank you. I got confused by the fact it wasn't there. I've create it and runs perfectly. Years ago OXS used tcsh, do you know which one is used currently? bash I guess? – OscarRyz Jul 15 '09 at 11:51
Yes, by default Terminal uses bash. – Simone Carletti Jul 15 '09 at 12:33

Because, as noted, Terminal has used bash by default for a few versions, you may want to keep an eye out for a .bash_profile file if .profile isn't present. See the "which startup files are read by the shell?" FAQ at which explain how the different files are used and the order in which they're read at startup.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .