From owner-freebsd-questions Wed Nov 19 13:56:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA03349 for questions-outgoing; Wed, 19 Nov 1997 13:56:58 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from mail.san.rr.com (san.rr.com [204.210.0.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA03343 for ; Wed, 19 Nov 1997 13:56:54 -0800 (PST) (envelope-from studded@san.rr.com) Received: (from studded@localhost) by mail.san.rr.com (8.8.7/8.8.7) id NAA29691; Wed, 19 Nov 1997 13:56:33 -0800 (PST) Message-Id: <199711192156.NAA29691@mail.san.rr.com> From: "Studded" To: "FreeBSD Questions" Date: Wed, 19 Nov 97 13:56:10 -0800 Reply-To: "Studded" Priority: Normal X-Mailer: PMMail 1.95a For OS/2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: Keeping mutliple machine and telnets straight.... Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 19 Nov 1997 08:40:40 -0600, Dave Glowacki wrote: >> Ok, it at depends what your PS1 variable is set to.. In bash type in >> "set|more" and take note of the PS1 variable.. Or just do set | grep PS1 >Or more bash-ily: > > export PS1='\u@\h% ' > >You can even do: > > export PS1='\d \t (\s \v) \u@\h:\w % ' > >To get a prompt like: > > Wed Nov 19 14:33:10 (bash 2.00) dglo@sweetpea:/tmp % The % at the end of the prompt is generally associated with *csh. A more Bash-like thing would be to use the $ that is traditional for Bourne (plain sh) and Bash shells. And while we're comparing prompts.. :) I like to know what directory I'm in, but it can get too long to read the commands that I'm typing in, so I put the directory and such on one line, and my prompt right below. If you do this with an xterm, make sure you use the -rw argument, otherwise it won't wrap properly. [studded@dalnet /usr/local/lib/ircd/conf] 7$ set | grep PS1 PS1='[\u@\h \w]\n \#\$ ' By using the \$ shell special character, it will change to a # when I su to root. There is more info available in the bash man page, in the PROMPTING section. Hope this helps, Doug *** Proud operator, designer and maintainer of the world's largest *** Internet Relay Chat server. 4,168 clients and still growing. :-) *** Try spider.dal.net on ports 6662-4 (Powered by FreeBSD) *** Part of the DALnet IRC network ***