From owner-freebsd-questions@FreeBSD.ORG Tue Jul 11 16:02:57 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 703C216A4DE for ; Tue, 11 Jul 2006 16:02:57 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A51443D5D for ; Tue, 11 Jul 2006 16:02:52 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.147] (helo=anti-virus03-10) by smtp-out2.blueyonder.co.uk with smtp (Exim 4.52) id 1G0KhG-00048M-Td; Tue, 11 Jul 2006 17:02:50 +0100 Received: from [82.41.34.175] (helo=[192.168.0.2]) by asmtp-out2.blueyonder.co.uk with esmtp (Exim 4.52) id 1G0KhG-00066v-8P; Tue, 11 Jul 2006 17:02:50 +0100 Message-ID: <44B3CBA9.2050709@dial.pipex.com> Date: Tue, 11 Jul 2006 17:02:49 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: Giorgos Keramidas References: <20060711125448.GA77175@gothmog.pc> <20060711130938.72503.qmail@web60014.mail.yahoo.com> <20060711132336.GB77495@gothmog.pc> <44B3B6B1.2050801@dial.pipex.com> <20060711144739.GA79957@gothmog.pc> In-Reply-To: <20060711144739.GA79957@gothmog.pc> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Peter , freebsd-questions Subject: Re: aterm -e screen does not source .bashrc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 16:02:57 -0000 Giorgos Keramidas wrote: >Agreed. My current .bash_profile is basically a minimal wrapper around >.bashrc these days: > >% gothmog % cat -n .bash_profile >% 1 # Startup file for login instances of the bash(1) shell. >% 2 # $RCS: giorgos/.bash_profile,v 1.10 2005/07/10 21:10:39 giorgos Exp $ >% 3 >% 4 # First of all, run a .bashrc file if it exists. >% 5 test -f ~/.bashrc && . ~/.bashrc >% 6 >% 7 # The following section should be pretty minimal, if present at all. >% 8 mesg y >/dev/null 2>&1 >% 9 /usr/bin/true >% gothmog % > > > I've found the distinction quite useful since, for example, I only want to run ssh-agent when logging in on the console, but not if I su, say. (I also share all my shell configuration files with my root identity, so I would expect to su on the console). Also, stuff like limits and exported environment variables only need to get set in the shell that owns all the others. And if you have things like mail notifications, or fortune, they just become irritating if you get them in every single xterm. --Alex