From owner-freebsd-questions Tue Nov 18 18:59:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA19386 for questions-outgoing; Tue, 18 Nov 1997 18:59:28 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from andrsn.stanford.edu (andrsn@andrsn.Stanford.EDU [36.33.0.163]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA19379 for ; Tue, 18 Nov 1997 18:59:24 -0800 (PST) (envelope-from andrsn@andrsn.stanford.edu) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.8.7/8.6.12) with SMTP id SAA03438; Tue, 18 Nov 1997 18:58:52 -0800 (PST) Date: Tue, 18 Nov 1997 18:58:50 -0800 (PST) From: Annelise Anderson To: Andrew cc: "Jonathan E. Lyons" , questions@FreeBSD.ORG Subject: Re: Keeping mutliple machine and telnets straight.... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 19 Nov 1997, Andrew wrote: > depending on what shell you are using you can set this up in your prompt. > I use tcsh and in my .cshrc i have: > set prompt = "`whoami`@%m%B%c02%b%#%L>" > which gives me > andrew@joker~>> > the whoami gives my username and the rest of the stuff (which I got off > someone else, thanks Rob) gives your machine name, current directory ("~" > for home dir), and some other stuff that I can't remember. > > There's a way of doing this under bash and zsh as well. I think under bash > it goes something like PS1="`whoami`@`hostname`$"; export PS1 > > Bye the way, this will probably start some kind of shell war thread :-) Hey why not? I think FreeBSD offers sh as the default shell--so if the poor user doesn't know any better, that's what he/she gets. The Linux default shell is bash, which is what the original questioner seems to be familiar with. Either bash or tcsh would be better than sh, I think; at least it would be nice to suggest installing something with a few more features than sh and csh. Annelise > > Andrew Perry > perrya@shoal.net.au~ >