public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Xavier Parizet <xav@gentooist.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] my gentoo wont read .bashrc automatically
Date: Wed, 02 Sep 2009 14:04:58 +0200	[thread overview]
Message-ID: <4A9E5F6A.9060506@gentooist.com> (raw)
In-Reply-To: <53e35fd50909020428l5720b494s2f57cf9d92b0cecf@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1391 bytes --]

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.mckinnon@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 <davidshen84@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



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]

      parent reply	other threads:[~2009-09-02  6:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-01 12:09 [gentoo-user] my gentoo wont read .bashrc automatically Xi Shen
2009-09-01 12:24 ` Renat Golubchyk
2009-09-01 21:15   ` Alan McKinnon
2009-09-02 11:28     ` Xi Shen
2009-09-02 12:02       ` Dale
2009-09-02 12:15         ` Alan McKinnon
2009-09-03  0:59           ` Xi Shen
2009-09-02 12:04       ` Xavier Parizet [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A9E5F6A.9060506@gentooist.com \
    --to=xav@gentooist.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox