Ask Different is a question and answer site for power users of Apple hardware and software. 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

Terminal started to ignore profile file settings, which I didn't change in a long time. How can I force Terminal to respect the file again? I tried to delete and recreate but it didn't help...

My setup is Lion 10.7.3, reports version 2.2.2 (303). ~/.profile file has following attributes: -rw-r--r--@

share|improve this question
Can you show us the contents of your profile? Here's what my profile looks like: -rw-r--r-- 1 martin staff 48 Sep 14 23:59 .profile – Martín Marconcini Mar 13 '12 at 11:58
@Martín: Extended attributes for profile file are: 32 and 15. Dunno what it means. The content of the file has not changed and was working so far... – delirus Mar 13 '12 at 13:21
up vote 3 down vote accepted

Ok, what shell (bash, zsh, ...) are you using? Bash for instance reads .profile in absence of .bash_profile and .bash_login, though of you are NOT using bash as a login shell it will most likely go straight to .bashrc

A similar question was asked on this forum before, and pjmorse added this link:

which describes what files are read, and in what order, by a shell in OSX.

share|improve this answer
Problem solved. The link you provided was really helpful. It turned out that .bash_login was executed instead of my .profile file. .bash_login was created as a result of Ruby Version Manger (rvm) installation on my machine. – delirus Mar 13 '12 at 13:29

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.