From owner-freebsd-questions Wed Oct 18 14: 9:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by hub.freebsd.org (Postfix) with ESMTP id 05ADB37B4F9 for ; Wed, 18 Oct 2000 14:09:57 -0700 (PDT) Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (8.10.1/8.10.1) with ESMTP id e9IL9sK11631; Wed, 18 Oct 2000 14:09:54 -0700 (PDT) Message-Id: <200010182109.e9IL9sK11631@ptavv.es.net> To: Rick Hamell Cc: freebsd-questions@FreeBSD.ORG Subject: Re: CSH Shell In-reply-to: Your message of "Tue, 17 Oct 2000 12:59:47 -0000." Date: Wed, 18 Oct 2000 14:09:54 -0700 From: "Kevin Oberman" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Date: Tue, 17 Oct 2000 12:59:47 +0000 (GMT) > From: Rick Hamell > 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