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

When I open a new terminal I don't get the prompt I setup in ~/.bashrc or my aliases etc... If I run exec $SHELL then everything applies like it should for example:

Last login: Mon Jan  7 09:02:00 on console
osiris:~ adam$ exec $SHELL

How do I get it to run everything on startup like it should?

share|improve this question
up vote 4 down vote accepted

The Mac OS X Terminal, in contrast to most other terminals, runs a login shell by default.

This means that .bashrc is not called. It will run .bash_profile instead, so you should source your .bashrc from there to have it executed.

See man bash, section "Invocation" for more info, as well as this blog article by Josh Staiger: .bash_profile vs .bashrc

share|improve this answer
Thanks! I knew it would be something simple – Arcath Jan 7 '13 at 9:32

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.