From owner-freebsd-questions Wed Feb 12 8: 2:59 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6B9837B401 for ; Wed, 12 Feb 2003 08:02:57 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DE7943F3F for ; Wed, 12 Feb 2003 08:02:55 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b146.otenet.gr [212.205.244.154]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h1CG2q4A004232 for ; Wed, 12 Feb 2003 18:02:53 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.7/8.12.7) with ESMTP id h1CG2pNS003412 for ; Wed, 12 Feb 2003 18:02:52 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.7/8.12.7/Submit) id h1CFM8eA002980; Wed, 12 Feb 2003 17:22:08 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 12 Feb 2003 17:22:08 +0200 From: Giorgos Keramidas To: Brian Henning Cc: freebsd Subject: Re: bash Message-ID: <20030212152208.GA2237@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-02-12 08:55, Brian Henning wrote: > I just installed bash from the ports and changed my shell with the > chsh command. I created a .bashrc file with a few settings and put > it in my home directory. When i log out and log back in the .bashrc > is not being executed. Is there something that i need to do before > that will work? Bash will not, by default, read and execute the commands of .bashrc for login shells. If you want the commands of .bashrc to be run for login shells too, then put the following in your .bash_profile file: test -f ~/.bashrc && . ~/.bashrc This will make sure that .bashrc commands are executed both for login and interactive shells. The files that bash runs for login shells are in order: ~/.bash_profile ~/.bash_login ~/.profile Any of these can include the `. .bashrc' command, but I picked .bash_profile because it's what I commonly use. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message