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 1MiVtn-0002R0-Ka for garchives@archives.gentoo.org; Tue, 01 Sep 2009 16:08:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A44E6E0740; Tue, 1 Sep 2009 21:16:44 +0000 (UTC) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by pigeon.gentoo.org (Postfix) with ESMTP id 687CDE0740 for ; Tue, 1 Sep 2009 21:16:44 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id d23so195157fga.10 for ; Tue, 01 Sep 2009 14:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=Mgd0P9bplqAJK0kkOSInEuwBqEIZlZn35NDoge19aw0=; b=vbc3mwlZOhPuIb2+nyY9goNC0v5HWlNLOOWinOhAUxy7um86wbU6+ce2fZFTkRFpJk a3iIRJSnlB8PLzspP+GUdzQjDreTFKW2D2f0Tv4CmADch0QoJEXil0eJUmPbRVEk3No+ 6q2H+2GJHaYU3nuUgqJH9r9iLTFXdnLyxUXs8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=En0bc+mQwAYIbC0NeCU90Qu1WeLPe89n295Ql6Q1ScyIPweKYw9utRS7LU6uL1PWkB FdPDM0ybiumQeAo0HKK+Zmd4FhTlgfR3xE5P4QZP6T9/UKMt8BGAA4jb97hwpy79Mnes zKilN+dnYs7lHqKqA0fiJ3lQGZN0LloTAi3d8= Received: by 10.86.173.4 with SMTP id v4mr1844168fge.78.1251839803787; Tue, 01 Sep 2009 14:16:43 -0700 (PDT) Received: from nazgul.localnet (196-210-140-68-rrdg-esr-2.dynamic.isadsl.co.za [196.210.140.68]) by mx.google.com with ESMTPS id 3sm1075751fge.7.2009.09.01.14.16.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Sep 2009 14:16:42 -0700 (PDT) From: Alan McKinnon 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 User-Agent: KMail/1.12.0 (Linux/2.6.30-gentoo-r4; KDE/4.3.0; x86_64; ; ) References: <53e35fd50909010509l553bd715y1a4c7b6f796e2583@mail.gmail.com> <20090901142410.680eb2d6@symbox> In-Reply-To: <20090901142410.680eb2d6@symbox> 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 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200909012315.12594.alan.mckinnon@gmail.com> X-Archives-Salt: 4f11e479-dd35-4f8c-b48f-fafcd18ff262 X-Archives-Hash: 22d7cbf43acf45e1727001d00733ef4b 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