SunQuest
           Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old October 20th, 2002, 12:57 AM
jjanes jjanes is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: San Ramon, CA
Posts: 70 jjanes User rank is Private First Class (20 - 50 Reputation Level)jjanes User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 23 m 48 sec
Reputation Power: 7
Modification of the shell prompt

I want to modify the shell prompt in I assume bash to always show the complete current path like DOS does. I used to work in UNIX many years ago and I know we were able to do this but it was an obscure task. Is it possible in LINUX RH7.1

here is an example of what I am looking for

DOS
C:\windows\program files\My Documents\


LINUX
[user@servername usr/home/user/www]#


I vaguely recall it was incorporating the pwd command in to the format of the prompt itself


Please let me know

Jeff

Reply With Quote
  #2  
Old October 20th, 2002, 01:13 AM
riv's Avatar
riv riv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 463 riv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 50 sec
Reputation Power: 8
You have to set PS1 env var from you .bashrc or .profile. You need to incorporate special "vars" because if you use pwd it will always return the same thing regardless of the directory you're in. Read the man page and make a search for PS1 (a few actually).
__________________
Words must be weighed, not counted.

Reply With Quote
  #3  
Old October 20th, 2002, 05:42 PM
GNUbie's Avatar
GNUbie GNUbie is offline
Throws Rocks
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Cincinnati, Ohio
Posts: 392 GNUbie User rank is Corporal (100 - 500 Reputation Level)GNUbie User rank is Corporal (100 - 500 Reputation Level)GNUbie User rank is Corporal (100 - 500 Reputation Level)GNUbie User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 6 h 31 m 7 sec
Reputation Power: 8
Helpful links

__________________
Two things have come out of Berkeley, Unix and LSD.
It is uncertain which caused the other.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Modification of the shell prompt


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway