From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MijBw-0001Ce-TE for garchives@archives.gentoo.org; Wed, 02 Sep 2009 06:19:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7DDE3E08FC; Wed, 2 Sep 2009 11:28:18 +0000 (UTC) Received: from mail-iw0-f203.google.com (mail-iw0-f203.google.com [209.85.223.203]) by pigeon.gentoo.org (Postfix) with ESMTP id 68313E08FC for ; Wed, 2 Sep 2009 11:28:18 +0000 (UTC) Received: by iwn41 with SMTP id 41so303011iwn.32 for ; Wed, 02 Sep 2009 04:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=t3DCtWet56bmJC2MstUBO6bv0z7qWh7erRJl+P9GOZI=; b=cUqdoUpIRQStzc2lcWPDBtvKEsDfW9vcRsyhlbKmMmWPPwO51mGsYl1AZy4QafZlL/ OT+AklQMziOxdImCmgx/BXGO5DCglgyfP5+RQjxw/z4tflRZu4WjN/NEL3LTwrFV1MEl hwpjJh0Nm/cC25m/1Ksf8NNp3/JcwPpXLBtG4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=eu2nIH3IA++3RMozkK/cDrqnIM11O72VCted5AK1vAcRmFGQjuyuZnhJsr8qcg9DAK 6WMfrkpd3saswdbG9DRrEIAsP0VYKsys1jqjHATBhWAtGoldBHIaexpMYz+IKosS+JDk 1wVjRr7rUiZoG+pb+lIysm4tetYc4CPjdvSrg= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.231.26.78 with SMTP id d14mr8482226ibc.30.1251890898190; Wed, 02 Sep 2009 04:28:18 -0700 (PDT) In-Reply-To: <200909012315.12594.alan.mckinnon@gmail.com> References: <53e35fd50909010509l553bd715y1a4c7b6f796e2583@mail.gmail.com> <20090901142410.680eb2d6@symbox> <200909012315.12594.alan.mckinnon@gmail.com> Date: Wed, 2 Sep 2009 19:28:18 +0800 Message-ID: <53e35fd50909020428l5720b494s2f57cf9d92b0cecf@mail.gmail.com> Subject: Re: [gentoo-user] my gentoo wont read .bashrc automatically From: Xi Shen To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: a0aa54c6-a63f-4cd7-b8db-30dffa5fb4e5 X-Archives-Hash: def2653cf4b2d9682d1a30da784b4559 where is the bash_profile? i cannot find it on my gentoo. On Wed, Sep 2, 2009 at 5:15 AM, Alan McKinnon wrote: > On Tuesday 01 September 2009 14:24:10 Renat Golubchyk wrote: >> Hi! >> >> On Tue, 1 Sep 2009 20:09:12 +0800 >> >> Xi Shen 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 > > -- Best Regards, David Shen http://twitter.com/davidshen84