What is the difference between PS1 and PROMPT_COMMAND
Posted
by Jed Daniels
on Stack Overflow
See other posts from Stack Overflow
or by Jed Daniels
Published on 2010-06-17T01:27:29Z
Indexed on
2010/06/17
1:32 UTC
Read the original article
Hit count: 284
While taking a look at this awesome thread I noticed that some examples use
PS1="Blah Blah Blah"
and some use
PROMPT_COMMAND="Blah Blah Blah"
(and some use both) when setting the prompt in a bash shell. What is the difference between the two? An SO search and even a bit of broader google searching aren't getting me results, so even a link to the right place to look for the answer would be appreciated. Thanks!
© Stack Overflow or respective owner