From owner-freebsd-questions Thu Apr 26 14:12: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 53C9D37B422 for ; Thu, 26 Apr 2001 14:12:00 -0700 (PDT) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by itouch.co.nz (8.11.3/8.11.1) id f3QLBdW82841; Fri, 27 Apr 2001 09:11:39 +1200 (NZST) (envelope-from jonc) Date: Fri, 27 Apr 2001 09:11:39 +1200 From: Jonathan Chen To: Trevin Chow Cc: questions@FreeBSD.ORG Subject: Re: What should be in /etc/profile & /etc/bashrc? Message-ID: <20010427091139.B80815@itouchnz.itouch> References: <20010426123638.O96761-100000@benny.geektank.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010426123638.O96761-100000@benny.geektank.org>; from tmchow@sfu.ca on Thu, Apr 26, 2001 at 12:40:00PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Apr 26, 2001 at 12:40:00PM -0700, Trevin Chow wrote: [...] > > Everything seemed to work okay but now that I've installed > postgresql, the startup scripts use the /bin/sh shell > and are imcompatible with some of the settings for the bash > prompt I have in /etc/profile. Bash stuff shouldn't go in /etc/profile. Only /bin/sh stuff should; as you've obviously discovered. Bash stuff should go in /etc/bashrc. In general, if the settings apply to *everyone* (including pseudo-users), put them in /etc; otherwise have a seperate file which you source/. in the user's ~/.bash* -- Jonathan Chen ---------------------------------------------------------------------- Don't worry about avoiding temptation, as you grow older, it starts avoiding you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message