Date: 22 Feb 2000 16:34:08 -0500 From: Lowell Gilbert <lowell@world.std.com> To: David Banning <tracker@worldy.com>, freebsd-questions@freebsd.org Subject: Re: bash doesn't recognize .profile when in X Message-ID: <rd6ema4hqgf.fsf@world.std.com> In-Reply-To: David Banning's message of Tue, 22 Feb 2000 15:47:19 %2B0000 (GMT) References: <Pine.BSF.4.05.10002221533250.16245-100000@mweb.worldy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
David Banning <tracker@worldy.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?rd6ema4hqgf.fsf>