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



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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Exit Shell Prompt after Pbrun ishanc Shell Programming and Scripting 4 02-25-2009 11:11 AM
Weird in Shell Prompt bobbygsk UNIX for Advanced & Expert Users 6 01-31-2008 02:13 PM
shell specific prompt dranNfly UNIX for Dummies Questions & Answers 3 04-27-2005 08:50 AM
script to change shell and prompt SHYAM Shell Programming and Scripting 1 06-27-2004 08:46 AM
No shell prompt? Mufasa UNIX for Dummies Questions & Answers 2 02-14-2002 07:31 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-30-2003
diegoe diegoe is offline
Registered User
  
 

Join Date: Jun 2003
Location: Argentina
Posts: 5
prompt in sh shell

Hi, I´m using SCO Unix 5.0.5 and I want to configure de variable PS1, so when I type the command:
cd /etc/
the prompt shows
/etc/_>

Is that possible with sh shell? I´ll appreciate your help.

Thanks, a Happy New Year!
  #2 (permalink)  
Old 12-30-2003
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
I have one I like for root and one for other users... that way you know by the prompt when you are root.

here is root PS... it should be on 2 lines like that in your .profile

PS1="`hostname`-$LOGNAME:\${PWD#*}
# "

for other users do this:

PS1="/\${PWD#*}_> "
will give what you wanted.
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0