The UNIX and Linux Forums  

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
Adding PATH variable in the startup scripts rajanishshetty UNIX for Dummies Questions & Answers 5 03-02-2007 12:51 PM
Ok simple question for simple knowledge... Corrail UNIX for Dummies Questions & Answers 1 11-28-2005 01:03 PM
IFS changing the variable value pvar Shell Programming and Scripting 1 02-25-2005 06:21 PM
changing directories (i'm sure there is a simple solution for this) Shakey21 UNIX for Dummies Questions & Answers 8 04-28-2002 07:14 PM
simple SH variable sancho5 Shell Programming and Scripting 9 01-04-2002 03:16 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-26-2002
abidmalik abidmalik is offline
Registered User
  
 

Join Date: Aug 2002
Location: North Carolina, USA
Posts: 25
Question Very simple question about changing PS1 variable at startup!

Hello there !

I am new in this Unix world and just start learning Unix. I have very simple question about changing PS1 variable (Shell Prompt)
i have local.profile file in my working directory, i open in vi edit mode and add this line PS1="Hello:>" and i save that file.

I disconnected from system and connected back to see effect but failed. why ? i have C shell, Ksh and Sh , it should not show Hello:> at the system startup ?

Please help me what am i doing wrong.

Thanks in advance.

Regards
Abid Malik
NC
  #2 (permalink)  
Old 08-26-2002
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
well i have not used c shell or korn shell but in bash and the bourne shell the ps1 variable is what sets the prompt, for bash, the file to put this in is ~/.bash_profile
  #3 (permalink)  
Old 08-26-2002
oombera's Avatar
oombera oombera is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
For ksh and sh, you should be able to just go into .profile in your home directory and type:

PS1='${PWD} '
for the current working directory

or

PS1="My prompt "
for some phrase you want to have show...

----

If you're in csh,

set prompt="My prompt "
in your .login file should work.
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 01:32 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