On Wed, 22 Mar 2017 13:34:50 +0100, Hogren wrote: > Anybody knows why ~/.bashrc is not running on the first Bash opening ? > > > Steps to reproduce my problem: > > - I boot up my machine (systemd) > > - I have the login prompt > > - I enter my login, then my password > > - I am in Bash but ~/.bashrc is not sourced. Aliases, $PATH, and other > are not updated. > > - I enter the command "bash" to enter in a subshell. Now I have my new > aliases, $PATH, etc. The ~/.bashrc is sourced.
From the man page: When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists. -- Neil Bothwick Newspaper Ad: Dog for sale: eats anything and is fond of children.
pgpyYCJNnhH4a.pgp
Description: OpenPGP digital signature