1 |
Xi Shen a écrit : |
2 |
> where is the bash_profile? i cannot find it on my gentoo. |
3 |
> |
4 |
> |
5 |
> On Wed, Sep 2, 2009 at 5:15 AM, Alan McKinnon<alan.mckinnon@×××××.com> wrote: |
6 |
>> On Tuesday 01 September 2009 14:24:10 Renat Golubchyk wrote: |
7 |
>>> Hi! |
8 |
>>> |
9 |
>>> On Tue, 1 Sep 2009 20:09:12 +0800 |
10 |
>>> |
11 |
>>> Xi Shen <davidshen84@××××××××××.com> wrote: |
12 |
>>>> every time i reboot the system, the ~/.bashrc will not be |
13 |
>>>> read/executed automatically. i have give it x attribute. also i have |
14 |
>>>> checked the /etc/bash/bashrc file, and i did not find and logic about |
15 |
>>>> reading/executing the ~/.bashrc file. is there anything wrong with my |
16 |
>>>> system? |
17 |
>>> You don't need the executable bit set on bashrc. ~/.bashrc gets read |
18 |
>>> when you start an interactive shell, e.g. an xterm. When you log in a |
19 |
>>> login shell is started, which reads ~/.bash_profile. If you want that |
20 |
>>> your ~/.bashrc will be read on login include the following statement |
21 |
>>> in ~/.bash_profile |
22 |
>>> |
23 |
>>> [[ -f ~/.bashrc ]] && . ~/.bashrc |
24 |
>> The standard bash_profile shipped in skel even has a comment directly above |
25 |
>> that (commented) line saying something to the effect of "uncomment the |
26 |
>> following line to have .bashrc read at every new shell"... |
27 |
|
28 |
/etc/skel/.bash_profile |
29 |
|
30 |
HTH. |
31 |
|
32 |
-- |
33 |
Xavier Parizet |
34 |
YaGB : http://gentooist.com |
35 |
GPG : C7DC B10E FC21 63BE |
36 |
B453 D239 F6E6 DF65 1569 91BF |