You are not logged in.

#1 2008-10-21 23:52:11

tsenart
Member
Registered: 2008-02-14
Posts: 9

[SOLVED] .bashrc isn't processed.

Hi folks.

I don't know why but my bashrc stopped beeing processed at terminal starting. I discovered this because when I ran alias I had none of those written on my .bashrc
I've been fussing on profiles and stuff but didn't managed to get it working myself.

Any ideias?
Thanks

Last edited by tsenart (2008-10-22 18:01:41)

Offline

#2 2008-10-22 00:17:15

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] .bashrc isn't processed.

If bash is interactive and a login shell, then ~/.bash_profile is read.

If it is interactive and not a login shell, then ~/.bashrc is read.

So put source ~/.bashrc in ~/.bash_profile to make sure it is always processed.

Last edited by Procyon (2008-10-22 00:17:30)

Offline

#3 2008-10-22 18:01:04

tsenart
Member
Registered: 2008-02-14
Posts: 9

Re: [SOLVED] .bashrc isn't processed.

Thanks! It's solved. I put everything on .bashrc and .bash_profile sources .bashrc.

Offline

#4 2008-10-23 01:42:34

ssjlegendx
Member
Registered: 2008-01-01
Posts: 94
Website

Re: [SOLVED] .bashrc isn't processed.

tsenart wrote:

I put everything on .bashrc and .bash_profile sources .bashrc.

If your ~/.bash_profile does nothing but source ~/.bashrc, you could do as phrakture mentions in this post and simply symlink ~/.bash_profile to ~/.bashrc. smile

Last edited by ssjlegendx (2008-10-23 01:49:14)


#!/vim/rocks

Offline

Board footer

Powered by FluxBB