Home > Linux > bashrc and his friends

bashrc and his friends

January 10, 2013 Leave a comment Go to comments

I am having some time that whenever I login to the Linux system, .bashrc is not automatically started. Anyway, fixed this morning. The reason is BASH executes ~/.bashrc when you start “an interactive shell that is not a login shell.” When the shell is a login shell, it starts ~/.bash_profile or ~/.profile instead. A terminal window is not a login shell, but apparently the shell started by an SSH login is. so basically simple ass source $HOME/.bashrc to ~/.bash_profile or ~/.profile will work.

Categories: Linux
  1. January 10, 2013 at 10:13 AM

    I had the same problem some months ago and did the same. Maybe using a symlink could work, too.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: