I have a .bash_profile in my home directory, but it isn't getting run on login. If I do the following, then things seem to be as I expect:
ssh myhost
bash
source ~/.bash_profile
But normally that all happens on login. Thoughts?
(enter your password and state the path to the shell you want to use) |
|||||||||||||
|
|
On top of akira's answer, you can also edit your You will find a line like this Example:
the shell is specified at the end. |
|||||||||
|
|
You might check your terminal program. It might be configured to run /bin/sh rather than /bin/bash Bash executes .bash_profile only for login sessions. .bashrc is executed for all bash sessions, not only login sessions. Try sourcing .bash_profile from .bashrc (avoid circular dependency!) or configuring your terminal program to run /bin/bash -l as a shell program. |
|||||
|
|
One alternative is to rename your startup script into .profile This file is being source by most shell |
|||
|
|
~/.profileor~/.bash_login, as only one of the three is sourced. (I forgot the exact order.) – grawity Sep 25 '09 at 15:20