From owner-freebsd-questions Tue May 16 20: 2:33 2000 Delivered-To: freebsd-questions@freebsd.org Received: from rhenium.btinternet.com (rhenium.btinternet.com [194.73.73.93]) by hub.freebsd.org (Postfix) with ESMTP id 995FD37B68A for ; Tue, 16 May 2000 20:02:23 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from [62.6.101.160] (helo=parish.my.domain) by carbon with esmtp (Exim 2.05 #1) id 12rmD4-00011M-00; Tue, 16 May 2000 19:36:50 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id TAA01181; Tue, 16 May 2000 19:35:02 +0100 (BST) (envelope-from mark) Date: Tue, 16 May 2000 19:35:02 +0100 From: Mark Ovens To: todd ritzka Cc: freebsd-questions@freebsd.org Subject: Re: help!! Message-ID: <20000516193502.G233@parish> References: <20000516164951.22984.qmail@web1404.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000516164951.22984.qmail@web1404.mail.yahoo.com>; from acidrop50@yahoo.com on Tue, May 16, 2000 at 09:49:51AM -0700 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, May 16, 2000 at 09:49:51AM -0700, todd ritzka wrote: > hello, > recently i was modifying my.cshrc file and i wanted to change my > prompt.(by the way im not logged on as root) when i changed it and > rebooted the computer the prompt was still the same. my qestion is, > where else could the prompt have been set?? > Post the ``set prompt'' line from your ~/.cshrc BTW, the prompt variable in csh is static, you can't set it up (directly) to change with the current directory (if you are wanting the pwd in the prompt). If you want to so that you need to alias cd(1), for example alias cd 'cd \!*;set prompt="`hostname`:`pwd`{!}% "' will give you parish:/usr/marko{62}% (parish is my hostname). and alias cd 'cd \!*;set prompt="`hostname`:`pwd`{!}% "; printf "\033]0;%s\007" `pwd`' will do the same, but set the title bar of an xterm to the pwd. Note that in both of those there are a mixture of single quotes (') and back-ticks (`). BTW, you don't need to reboot to implement changes to ~/.cshrc; just type source ~/.cshrc at the prompt (although that only affects the current console/xterm) HTH > thanks > > mel > > __________________________________________________ > Do You Yahoo!? > Send instant messages & get email alerts with Yahoo! Messenger. > http://im.yahoo.com/ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- ...and on the eighth day God created UNIX ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ 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