From owner-freebsd-questions Tue Nov 18 18:10:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA16148 for questions-outgoing; Tue, 18 Nov 1997 18:10:35 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from elvis.vnet.net (elvis.vnet.net [166.82.1.5]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA16136 for ; Tue, 18 Nov 1997 18:10:30 -0800 (PST) (envelope-from rivers@dignus.com) Received: from ponds.dignus.com (ponds.vnet.net [166.82.177.48]) by elvis.vnet.net (8.8.5/8.8.4) with ESMTP id VAA04496; Tue, 18 Nov 1997 21:08:57 -0500 (EST) Received: from lakes.dignus.com (lakes [10.0.0.3]) by ponds.dignus.com (8.8.5/8.8.5) with ESMTP id VAA04248; Tue, 18 Nov 1997 21:26:35 -0500 (EST) Received: (from rivers@localhost) by lakes.dignus.com (8.8.7/8.6.9) id VAA01316; Tue, 18 Nov 1997 21:14:34 -0500 (EST) Date: Tue, 18 Nov 1997 21:14:34 -0500 (EST) From: Thomas David Rivers Message-Id: <199711190214.VAA01316@lakes.dignus.com> To: parrothd@midwest.net, questions@FreeBSD.ORG Subject: Re: Keeping mutliple machine and telnets straight.... Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Hello, > Now that I have 3 FreeBSD machines on my network I've developed a nasty > habbit. I tend to telnet around from machine to machine and sometimes > (well, most of the time)lossing track of where I am. I've noticed on other > linux machines/shells the host name is in the command line...Ie... > > You have new mail. > # > > You have new mail. > hostname-# > > Is this just a different shell or what? > > > Thanks! > > Change your .profile (or .login for the csh) to alter the value of PS1. PS1 contains your prompt string (e.g. Prompt String 1). Here's what I do in my .profile (for the bourne shell, a csh user will want to do something different): PS1="[`hostname`]$ " which makes my prompt look like: [machinename]$ Very handy for situations like your describing... - Dave Rivers -