From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] my gentoo wont read .bashrc automatically
Date: Tue, 1 Sep 2009 23:15:12 +0200 [thread overview]
Message-ID: <200909012315.12594.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <20090901142410.680eb2d6@symbox>
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"...
--
alan dot mckinnon at gmail dot com
next prev parent reply other threads:[~2009-09-01 16:08 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 [this message]
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
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=200909012315.12594.alan.mckinnon@gmail.com \
--to=alan.mckinnon@gmail.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