Web Hosting Talk







View Full Version : BSD Environment Question


allan
06-20-2002, 07:31 PM
Its been about 4 years since I touched a BSD machine, and I am finding that I am a little rusty :D.

I want to set my environmental variables so that it shows the current directory as part of the prompt, as I am sshing around the box.

Where do I make that change?

taz0
06-20-2002, 08:05 PM
It depends on your shell, not the system.

A little search on PS1 bash PWD (http://www.google.ca/search?hl=en&q=PS1+bash+PWD&meta=) gave me this: http://www.cuug.ab.ca/~leblancj/labs/prompts.html

allan
06-20-2002, 09:08 PM
Originally posted by taz0
It depends on your shell, not the system.


taz -- great links, thanks!! Yea, the problem is I turned into a lazy bash user, and couldn't remember my way around csh :D. I searched through the BSD documentation and google for environmental information -- but I was obviously looking for the wrong thing :).


thanks again

cperciva
06-21-2002, 12:03 AM
If you're more familiar with bash, why not just install it?

allan
06-21-2002, 12:11 AM
Originally posted by cperciva
If you're more familiar with bash, why not just install it?

Because it has been a long time since I used csh, and I like playing with all the toys :D. I have my linux box at home with a bash shell...so this is different for me.