From owner-freebsd-questions Wed Mar 13 11:00:11 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA16664 for questions-outgoing; Wed, 13 Mar 1996 11:00:11 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA16658 for ; Wed, 13 Mar 1996 11:00:05 -0800 (PST) Received: from cabal.io.org (cabal.io.org [198.133.36.103]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id LAA10725 for ; Wed, 13 Mar 1996 11:00:04 -0800 Received: (from taob@localhost) by cabal.io.org (8.7.4/8.7.4) id NAA02029; Wed, 13 Mar 1996 13:56:15 -0500 (EST) Date: Wed, 13 Mar 1996 13:56:15 -0500 (EST) From: Brian Tao To: Michael Smith cc: Mike Coffey & Yvonne Shevnin , questions@FreeBSD.org Subject: Re: How to make current directory show at the commandline? In-Reply-To: <199603131010.UAA02676@genesis.atrad.adelaide.edu.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 13 Mar 1996, Michael Smith wrote: > > If you're using tcsh, try this in your .cshrc file : > > set prompt=`hostname -s`:%~\> > > Read the tcsh manual page for more details. You should do that, Mike. :) tcsh adds a bunch of new $prompt tokens. %m expands to the hostname, for example. My tcsh prompt is a nice two-liner. I like to see the full cwd, but still have lots of room to type on the command line. set prompt='\n%B[%T]%m:%/%b\n<%h> ' ... giving you this: [13:54]zot:/u/staff/taob/News/alt/comp/periphs/mainboard/asus <355> The first line is in bold text too. -- Brian Tao (BT300, taob@io.org) Systems Administrator, Internex Online Inc. "Though this be madness, yet there is method in't"