Xi Shen a écrit : > where is the bash_profile? i cannot find it on my gentoo. > > > On Wed, Sep 2, 2009 at 5:15 AM, Alan McKinnon<alan.mckin...@gmail.com> wrote: >> On Tuesday 01 September 2009 14:24:10 Renat Golubchyk wrote: >>> Hi! >>> >>> On Tue, 1 Sep 2009 20:09:12 +0800 >>> >>> Xi Shen <davidshe...@googlemail.com> 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"...
/etc/skel/.bash_profile HTH. -- Xavier Parizet YaGB : http://gentooist.com GPG : C7DC B10E FC21 63BE B453 D239 F6E6 DF65 1569 91BF
signature.asc
Description: OpenPGP digital signature