From owner-freebsd-questions Tue Feb 22 13:34:37 2000 Delivered-To: freebsd-questions@freebsd.org Received: from europe.std.com (europe.std.com [199.172.62.20]) by hub.freebsd.org (Postfix) with ESMTP id 3A93F37B6D1 for ; Tue, 22 Feb 2000 13:34:32 -0800 (PST) (envelope-from lowell@world.std.com) Received: from world.std.com (lowell@world-f.std.com [199.172.62.5]) by europe.std.com (8.9.3/8.9.3) with ESMTP id QAA02708; Tue, 22 Feb 2000 16:34:23 -0500 (EST) Received: (from lowell@localhost) by world.std.com (8.9.3/8.9.3) id QAA16403; Tue, 22 Feb 2000 16:34:09 -0500 (EST) To: David Banning , freebsd-questions@freebsd.org Subject: Re: bash doesn't recognize .profile when in X References: From: Lowell Gilbert Date: 22 Feb 2000 16:34:08 -0500 In-Reply-To: David Banning's message of Tue, 22 Feb 2000 15:47:19 +0000 (GMT) Message-ID: Lines: 22 X-Mailer: Gnus v5.5/Emacs 20.2 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Banning writes: > I have this command in my .profile which allows me to do a "ls -lt" with > just an "l"; > > l() { /bin/ls -lt $*; } # less typing > > that works find when not in X - but when I fire up my window manager > (kde) > it will not recognize the command. > > Any ideas ? .profile will not be run when an xterm starts, because xterms are not, by default, "login shells". There are a number of ways around this; you can force xterm to start a login shell with a parameter or resource, or you can put this function in your .bashrc. The meaning of a login shell isn't as clear as it used to be, but in my opinion this function belongs in your .bashrc in any case. Be well. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message