[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Strange .bashrc Problem



On Wed, Apr 25, 2018 at 03:34:02PM -0400, Stephen P. Molnar wrote:
> Bu bumbling about I discovered
> the it is necessary to source .bashrc inorder to recticate the alias lines
> in .bashrc (note:  commenting out the added lines in .bash_profile did not
> solve the problem).
> 
> What's going on what is the fix?

It is normal and expected that you must source (or dot in) ~/.bashrc
from your ~/.bash_profile or ~/.profile.

If this previously worked for you and then STOPPED working when you
installed HEX, then two possible things come to mind:

1) Installing HEX somehow removed the ". ~/.bashrc" code from your profile.

2) Installing HEX created a ~/.bash_profile that previously did not exist.
   Before this, you were using ~/.profile which is what Debian creates
   in a default stretch install.

#2 seems more likely to me.  If that's the case, then perhaps what you
want to do is source ~/.profile from your ~/.bash_profile.  Or perhaps
you would prefer to merge the two into a single file.

A lot will depend on how you believe HEX will handle future upgrades.
Will it search for its installed content in your ~/.bash_profile and
blindly append its content to ~/.bash_profile if it doesn't see it?
Even if the content is actually in ~/.profile instead?


Reply to: