From owner-freebsd-questions Thu Nov 20 02:12:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA26239 for questions-outgoing; Thu, 20 Nov 1997 02:12:26 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from nectech.nectech.co.uk (nectech.nectech.co.uk [194.129.183.2]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id CAA26230 for ; Thu, 20 Nov 1997 02:12:22 -0800 (PST) (envelope-from <@host200-253.neceur.com:Jeff.Bond@nectech.co.uk>) Received: from host200-253.neceur.com by nectech.nectech.co.uk id aa17426; 20 Nov 97 10:20 GMT Received: by exchange with Internet Mail Service (5.0.1458.49) id ; Thu, 20 Nov 1997 10:09:16 -0000 Message-ID: <014CB6ADC0BCD0118B1B006097827D5B3D32CA@exchange> From: "Bond, Jeffery" To: "'questions@freebsd.org'" Cc: "'parrothd@midwest.net'" Subject: RE: Keeping mutliple machine and telnets straight.... Date: Thu, 20 Nov 1997 10:09:15 -0000 X-Priority: 3 X-Mailer: Internet Mail Service (5.0.1458.49) Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Jonathan E. Lyons wrote: >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! What shell are you using? If you are using tcsh, you could try adding this to your .cshrc file: set prompt = %n'@'%M:'['%h']':%C3'>' Don't ask me _how_ it works, it just does. It gives you a prompt like: username@hostname:[command_no]:current_path> ie: fred@sparky:[4]:/home/fred> if you are using csh, try this instead: set prompt="`hostname`:`pwd`>" (I hope the double quote characters are readable) and you'll get a prompt like fred:/home/fred> Jeff --------------------------------------------------- Jeffery Bond ---------------------------------------------------