All Questions
Tagged with ps1 environment-variables
2
questions
0
votes
3
answers
5k
views
How to change the PS1 value.
I am logged in as the root of a Linux 2.6.18 machine. I changed the value of PS1 as:
export PS1="$PWD> "
It works and hardcodes the command prompt as the home directory followed by a >. Now I ...
2
votes
1
answer
880
views
What prompt is sh using when you type sh into Terminal?
When using the default PS1 prompt that MAC OS/Terminal comes with, when you type sh you get a new style prompt.
station-4:~ user$ sh
sh-3.2$
When you export your own PS1, this functionality goes ...