Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2004 20:14:06 +0200
From:      Ion-Mihai Tetcu <itetcu@apropo.ro>
To:        "Zuckerman" <zuckerman@terra.com.br>
Cc:        freebsd-newbies@freebsd.org
Subject:   Re: prompt
Message-ID:  <20040112201406.6001cdaa@it.buh.cameradicommercio.ro>
In-Reply-To: <000a01c3d930$c02120c0$0201a8c0@pentagon>
References:  <20040112165721.85994.qmail@web21508.mail.yahoo.com> <000a01c3d930$c02120c0$0201a8c0@pentagon>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 12 Jan 2004 15:22:58 -0200
"Zuckerman" <zuckerman@terra.com.br> wrote:

Please don't use reply for a new message, it trashes threads viewing.

> Hi,
> 
> How I change the prompt in console to [localhost@user /pathdir]# ?

It depend on the shell you use.
For (t)csh you set the prompt variable in ~/.cshrc

set prompt = "`hostname -s`>%/# "
gives:
it>/usr/ports# pwd
/usr/ports

it being the hostname.


do a man csh and search for `prompt' (press / and write prompt and then
ENTER; for search again press / and ENTER) untill you get to the
`prompt' in the variables section, where you can see all teh options.



-- 
IOnut
Unregistered ;) FreeBSD user



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