Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2000 19:35:02 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        todd ritzka <acidrop50@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: help!!
Message-ID:  <20000516193502.G233@parish>
In-Reply-To: <20000516164951.22984.qmail@web1404.mail.yahoo.com>; from acidrop50@yahoo.com on Tue, May 16, 2000 at 09:49:51AM -0700
References:  <20000516164951.22984.qmail@web1404.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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