From owner-freebsd-questions Thu Jun 10 16:24:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from server4.reno.powernet.net (server4.reno.powernet.net [208.226.189.15]) by hub.freebsd.org (Postfix) with ESMTP id 284A215410 for ; Thu, 10 Jun 1999 16:24:38 -0700 (PDT) (envelope-from trzy@powernet.net) Received: from p5-11.reno.powernet.net (p5-11.reno.powernet.net [208.226.188.13]) by server4.reno.powernet.net (8.9.0/8.8.5) with ESMTP id QAA06446 for ; Thu, 10 Jun 1999 16:24:36 -0700 (PDT) Date: Thu, 10 Jun 1999 16:20:37 -0700 (PDT) From: Bart Trzynadlowski X-Sender: trzy@Brzuszek To: freebsd-questions@freebsd.org Subject: prompts Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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