where is the bash_profile? i cannot find it on my gentoo.

On Wed, Sep 2, 2009 at 5:15 AM, Alan McKinnon<[email protected]> wrote:
> On Tuesday 01 September 2009 14:24:10 Renat Golubchyk wrote:
>> Hi!
>>
>> On Tue, 1 Sep 2009 20:09:12 +0800
>>
>> Xi Shen <[email protected]> wrote:
>> > every time i reboot the system, the ~/.bashrc will not be
>> > read/executed automatically. i have give it x attribute. also i have
>> > checked the /etc/bash/bashrc file, and i did not find and logic about
>> > reading/executing the ~/.bashrc file. is there anything wrong with my
>> > system?
>>
>> You don't need the executable bit set on bashrc. ~/.bashrc gets read
>> when you start an interactive shell, e.g. an xterm. When you log in a
>> login shell is started, which reads ~/.bash_profile. If you want that
>> your ~/.bashrc will be read on login include the following statement
>> in ~/.bash_profile
>>
>> [[ -f ~/.bashrc ]] && . ~/.bashrc
>
> The standard bash_profile shipped in skel even has a comment directly above
> that (commented) line saying something to the effect of "uncomment the
> following line to have .bashrc read at every new shell"...
>
> --
> alan dot mckinnon at gmail dot com
>
>



-- 
Best Regards,
David Shen

http://twitter.com/davidshen84

Reply via email to