From owner-freebsd-questions Sat Aug 14 20:16: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sand.global.net.uk (sand.global.net.uk [195.147.248.109]) by hub.freebsd.org (Postfix) with ESMTP id C79F014E8F for ; Sat, 14 Aug 1999 20:15:59 -0700 (PDT) (envelope-from marko@globalnet.co.uk) Received: from pa4s13a06.client.global.net.uk ([195.147.221.165] helo=marder-1.) by sand.global.net.uk with esmtp (Exim 2.05 #1) id 11FqmM-0006dU-00; Sun, 15 Aug 1999 04:16:14 +0100 Received: (from marko@localhost) by marder-1. (8.9.2/8.8.8) id EAA00481; Sun, 15 Aug 1999 04:09:34 +0100 (BST) (envelope-from marko) Date: Sun, 15 Aug 1999 04:09:34 +0100 From: Mark Ovens To: Laurence Berland Cc: Mark Ovens , Subscriber to freebsd-questions , Kenneth Legg , freebsd-questions@FreeBSD.ORG Subject: Re: Prompt Message-ID: <19990815040934.A451@marder-1> References: <99081410242902.00286@myname.my.domain> <19990815035813.C267@marder-1> <37B62EF1.973F9C57@confusion.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <37B62EF1.973F9C57@confusion.net>; from Laurence Berland on Sat, Aug 14, 1999 at 11:07:29PM -0400 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Aug 14, 1999 at 11:07:29PM -0400, Laurence Berland wrote: > On tcsh i'm using > set prompt=("%n@%m:%/ {%!} ") > in the .cshrc > that gives you username, machine name, directory, and the history number > so for example > user@foo:/usr/bin {73} > > I don't know if it works under csh, No: marder-1:/usr/marko{52}% unalias cd marder-1:/usr/marko{53}% set prompt=("%n@%m:%/ {%!} ") %n@%m:%/ {%54} > but it's alot less work than using > hostname or pwd or other things like it, tcsh fills in the variables > > Mark Ovens wrote: > > > > On Sun, Aug 15, 1999 at 06:54:16AM +0400, Subscriber to freebsd-questions wrote: > > > > > > > > > On Sat, 14 Aug 1999, Kenneth Legg wrote: > > > > > > > How do you change the prompt to show the current directory? > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > > > If you use csh or tcsh, type this line in your .cshrc file : > > > > > > set prompt = "`hostname -s`: %~ > " > > > > > > This also adds information about hostname (useful thing, when you have > > > accounts on several boxes). > > > > Or add the following alias: > > > > alias cd 'cd \!*;set prompt="`hostname`:`pwd`{!}% "' > > > > > Andrew. > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > -- > > FreeBSD - The Power To Serve http://www.freebsd.org > > My Webpage http://http://ukug.uk.freebsd.org/~mark/ > > _______________________________________________________________ > > Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK > > CAD/CAM solutions for Sheetmetal Working Industry > > mailto:mark@ukug.uk.freebsd.org http://www.radan.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > -- FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://http://ukug.uk.freebsd.org/~mark/ _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message