How do I change the bash prompt in SuSE 8.2
When I log in (init3) I get the prompt
if I cd somewhere, th prompt does not change ie:
linux:~ # cd /usr/
how do I make it do this? Thank You
Put the following into ~/.bashrc
export PS1 = 'linux:\w # '
The \w is the working directory. There's other stuff you can put in too, \h is the host, \u is the user and so on. Not sure where the full list is, probably under "man bash".
I also recommend the search function of this site ;):
|All times are GMT -5. The time now is 07:16 AM.|