From owner-freebsd-questions@FreeBSD.ORG Wed Mar 3 08:38:09 2004 Return-Path: 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 D4F8216A4CE for ; Wed, 3 Mar 2004 08:38:09 -0800 (PST) Received: from dyer.circlesquared.com (host217-45-219-83.in-addr.btopenworld.com [217.45.219.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBB9343D3F for ; Wed, 3 Mar 2004 08:38:04 -0800 (PST) (envelope-from peter@circlesquared.com) Received: from circlesquared.com (localhost.petanna.net [127.0.0.1]) i23GdJ1J053970; Wed, 3 Mar 2004 16:39:30 GMT (envelope-from peter@circlesquared.com) Message-ID: <40460A37.6060605@circlesquared.com> Date: Wed, 03 Mar 2004 16:39:19 +0000 From: Peter Risdon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20031102 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bob Perry References: <4043619E.4010605@earthlink.net> In-Reply-To: <4043619E.4010605@earthlink.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD-Questions Subject: Re: Help Setting Up .bashrc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2004 16:38:09 -0000 Bob Perry wrote: > Hello, > > My environment variables indicate SHELL=/usr/local/bin/bash and > ENV=/home/rperry/.shrc. My understanding is that bash reads > ~/.bashrc for interactive shells and $ENV for non-interactive shells. > I don't have the ~/.bashrc file. Neither do I have a ~/.bash_profile, > or a ~/.bash_login file. > > I also see where the startup files for bash are .profile and .bashrc. > One of the settings in my .profile indicates that ENV=$HOME/.shrc; > export ENV. > > I've read where bash will read other files (e.g., .shrc, etc.) when > it's own > initialization files are not present but I'd like to set up the > appropriate > bash files anyway. I've seen examples of the .bashrc file in some text > but was looking for something from within FreeBSD. I found some > /src/share/skel/dot.* files but none for bash. Can anyone tell me if > such > sample files exists and where I might find them? Do I need really need > them? > > Thank you. > Bob Perry > man bash: When bash is invoked as an interactive login shell, or as a non-inter- active shell with the --login option, it first reads and executes com- mands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior. So the skel/dot.profile is used by bash. PWR.