public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Renat Golubchyk <ragermany@gmx.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] my gentoo wont read .bashrc automatically
Date: Tue, 1 Sep 2009 14:24:10 +0200	[thread overview]
Message-ID: <20090901142410.680eb2d6@symbox> (raw)
In-Reply-To: <53e35fd50909010509l553bd715y1a4c7b6f796e2583@mail.gmail.com>

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

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


Cheers,
Renat

-- 
Probleme kann man niemals mit derselben Denkweise loesen,
durch die sie entstanden sind.
                                              (Einstein)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2009-09-01  7:15 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 [this message]
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

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=20090901142410.680eb2d6@symbox \
    --to=ragermany@gmx.net \
    --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