Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Can someone tell me when I open a Terminal window if my .bash_profile is loaded (or readed). Each time now (dont know why) some cmds (ie: ls, man) are unknow. When I edit the file (I add : export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin ) and open up a new Terminal I dont see my new editing. If I type some comments it is the same ..
Is it possible that another .bash is loaded instead of the one in ~/.bash_profile.

Note: when I type the line mentionned in () above in the command prompt than everything works fine again...

Thank for the help.

share|improve this question
    
Can you please add your .bash_profile to your question, it will be difficult to get good answers without. –  patrix Sep 23 '13 at 7:52
1  
Is Startup > "Shells open with" set to "Default login shell"? When bash is invoked as an interactive login shell, it does normally read ~/.bash_profile. See gnu.org/s/bash/manual/html_node/Bash-Startup-Files.html. –  Lri Sep 23 '13 at 7:57
3  
Could you insert in your question the following output of commands: echo ${PATH} ; ls -ld ~/.bash* –  daniel Azuelos Sep 23 '13 at 7:58

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.