The prompt string  is defined in the variable PS1 for the bourne shell.  I 
believe that bash  (bourne again shell ) also uses this variable.  Note: you 
only need to set it, no need to export it to the environment.  

First check to verify the shell you are running 
echo$shell

then run a man page on the shell (if you want to get fancy , then code like the 
below should bring up the man page in preview...

man -t bash | open -a preview -f 

But then again, google can find man pages, and there is actually a option in 
Google settings to indicate that you want a UNIX man page when you enter  "man 
XXX" in the google search bar.

Best wishes,



Jonathan C. Cohn
[email protected]



On Feb 8, 2012, at 8:54 AM, Paul Erkens wrote:

> Dear list,
> 
> I am learning to change the terminal prompt. It now includes my machine name 
> and my user name, which is what I want to get rid of. I think that the prompt 
> is contained in an environment variable. I found that I can look at them by 
> using env without parameters, and that works. However, prompt is not in here. 
> Where do I need to look, to find the placeholders string that gives me my 
> prompt?
> 
> Paul.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "MacVisionaries" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/macvisionaries?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/macvisionaries?hl=en.

Reply via email to