This problem I have for a long time. After running terminal .profile, and .bashrc file doesn`t work (are not executed). Could you indicate where should I looking form a source of problem?
migrated from stackoverflow.com Sep 26 '12 at 8:36
|
I had a similar problem with my |
|||||||||
|
|
I guess this Q&A should go to Superuser, but anyway: According to the section INVOCATION of the man page,
If your other UNIX machine automatically read So, if you want to run
in your |
|||
|
|
|
Try sourcing them "by hand":
and see what happens. Note that, as others have pointed out, .profile is sourced by login shells, .bashrc by non-login shells; so try one or the other, not both. |
|||
|
|
|
In your terminal preferences, check in the 'Startup' pane. You have options:
I have 'default' chosen...if you have the custom command chose, that may be a factor. The next point to check is whether the shell is started as a login shell. When I do a
The key point here is the ' The settings pane in the terminal preferences also lists a shell option. I have /bin/sh listed in mine. You should not need thisIf the worst comes to the worst, you can do as I did on some other uncooperative systems in times past - I created a program 'loginsh' which I could run from windows, and it in turn would execute my chosen shell with the '
(The |
|||
|
|
~/.profiledoesn't require execute permission. (The shell sources it, it doesn't execute it). Trychmod -x ~/.profileand see if it still works. – Keith Thompson Nov 4 '11 at 0:15