Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

~/.bashrc not being applied

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
filipbeijer
Posts: 1
Joined: 2014-02-24 12:16

Re: ~/.bashrc not being applied

#16 Post by filipbeijer »

Hi,

It's because /etc/bash.bashrc seems not to be sourced in /etc/profile (at least since wheezy) as the variables tested are not in the environment. It's about $PS1 which is tested and $BASH. Both of them don't exsist at that time and the end result is that /etc/bash.bashrc is not sourced. A work around could be to add the lines below in /etc/profile just below the export PATh line at the top.

if [ "$SHELL" = "/bin/bash" ]; then
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
fi

Filip

Post Reply