Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2000 14:09:54 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Rick Hamell <hamellr@heorot.1nova.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: CSH Shell 
Message-ID:  <200010182109.e9IL9sK11631@ptavv.es.net>
In-Reply-To: Your message of "Tue, 17 Oct 2000 12:59:47 -0000." <Pine.BSF.4.21.0010171257460.12552-100000@heorot.1nova.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Tue, 17 Oct 2000 12:59:47 +0000 (GMT)
> From: Rick Hamell <hamellr@heorot.1nova.com>
> Sender: owner-freebsd-questions@FreeBSD.ORG
> 
> 
> 	Taking my first steps into scripting, my first task is to figure
> out how to customize csh. Problem is, I can't seem to make something like
> set prompt="'hostname' %" work... The command hostname dosen't seem to
> work at all. I figure I've got the syntax wrong, but where... ? :) What I
> get is 'hostname' btw. Thanks much!

Fist, change the single quotes around 'hostname' to back ticks.

Second, if you are running FreeBSD-4.1 or newer you are actually
running tcsh and you can do it better with:
set prompt="%m%% "

There are several prompt setting shortcuts. See man csh for all the
details.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010182109.e9IL9sK11631>