![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need couple of ksh tricks please | JamesByars | Shell Programming and Scripting | 4 | 02-23-2008 11:07 AM |
| Developer Tricks: VideoLAN VLC Media Player - Redmond Developer News | iBot | UNIX and Linux RSS News | 0 | 06-17-2007 03:54 PM |
| tar tricks | neked | UNIX for Advanced & Expert Users | 2 | 08-14-2006 12:14 PM |
| prompt why ? | ls1429 | UNIX for Dummies Questions & Answers | 2 | 12-13-2001 03:44 AM |
| 'make' problems (compliation problems?) | xyyz | UNIX for Advanced & Expert Users | 5 | 11-05-2001 06:47 PM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
||||
|
And in csh what will happen if this is used for a prompt is that the pormpt will have a fixed value and not be updated when the directory is changed.
See my post in the FAQ for what needs to be done to get the prompt to update dynamically, on the other hand in tcsh %~ would be an option to explore. |
||||
| Google UNIX.COM |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|