Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 1999 16:20:37 -0700 (PDT)
From:      Bart Trzynadlowski <trzy@powernet.net>
To:        freebsd-questions@freebsd.org
Subject:   prompts
Message-ID:  <Pine.BSF.4.05.9906101615410.393-100000@Brzuszek>

next in thread | raw e-mail | index | archive | help
Hello,
	I'd like to thank everyone for helping me out with the email
issue. I decided to stick with Pine and just change my login name to
"trzy".

I asked earlier about prompts under csh and sh but I still haven't been
able to change them. I want the prompts to display the current directory
followed by a # or $ depending on the user class.
	My zsh prompt looks like this:

/home/trzy%

	But my sh prompt is just a "$" or "#" and my csh prompt prints the
hostname followed by a # or $. The csh man page says that the cwd variable
lists the current working directory and is modified each time the
directory is changed via cd. So I tried setting the prompt like this:

set prompt = "$cwd#" 

	Csh is for my root account and when I logged in as root I got to
experience what follows:

/root# cd ..
/root# cd /home/trzy
/root#

	thus cwd is not changing with each cd.

Any ideas for csh and sh?

Thanks a lot!

Bart Trzynadlowski



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?Pine.BSF.4.05.9906101615410.393-100000>