The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
The Top Ten Security Threats for 2008 (Part 2) - The Current Situation iBot Complex Event Processing RSS News 0 11-09-2007 11:00 PM
Getting current work directory in Command Prompt MeganP UNIX for Dummies Questions & Answers 3 07-20-2007 10:49 AM
filename in current directory calgone337 Shell Programming and Scripting 2 04-15-2007 11:21 AM
Setting the current path in the command prompt in (t)csh reborg Answers to Frequently Asked Questions 0 10-10-2006 12:02 PM
Help setting PS1 prompt to include current time m223464 Shell Programming and Scripting 3 11-28-2005 08:59 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-22-2002
Registered User
 

Join Date: Aug 2002
Location: Taiwan
Posts: 5
current directory as part of the csh prompt

I would like my csh prompt to behave like the linux csh prompt setting done by linux command (set prompt="%n@%m %c]$ ")
how do I do that?
What I'm trying to do is that I would like to see what directory I'm in by looking at the prompt.
I've figured out that %n is like $user, and %m is like `uname -n`, but I have no glue about what is the equivalence of %c in unix csh so that the prompt changes everytime i change a directory.

Please help
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-23-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
See this thread and try searching this site first. Many questions have already been answered.
Reply With Quote
  #3 (permalink)  
Old 08-27-2002
inquirer
Guest
 

Posts: n/a
this thread may give you some assistance

Try this one ...

set prompt in sun

Thanks,
Reply With Quote
  #4 (permalink)  
Old 08-27-2002
Registered User
 

Join Date: Aug 2002
Location: Ahmedabad
Posts: 2
try out $cwd. that should work.

aaditya
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0