The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-26-2007
HybridLogic HybridLogic is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 2
Set prompt, problems and tricks

I'm using a csh shell (or, that'd be my guess from the .cshrc file I see) and I'm looking to change my prompt.

There are about 10 other threads, I know, but this question is a little more specific. I want to know, is there a way to list the current directory from a certain level or directory down? That is, I'm using a university's Unix server and I don't need to see
/home/ugrads/myName on every line, but I'd like to see everything from myName/ down (so I know where in my own directories I am).

Is it possible to cut the directory like this? Also, using a command like set prompt = "$PWD Through the Hedge \!% :" seems to set the prompt line to the current directory only. Makes sense, setting it equal to the current value of the PWD variable.

How do I get it to change whenever I change directories?


Links to pre-existing helpful threads appreciated. Thanks.