How to keep PS1 changed in terminal? I'm able to change the terminal prefix with PS1="[\\W]$".

However, whenever I restart the terminal or open a new instance, it reverts to the default.

How can I make this change permanent?

Thanks!



Here's the content of ~/.profile file:

PS1="[\\W]\\$"
If both .bash_profile and .profile exist, bash reads only .bash_profile when opening a login shell. So try adding the line to .bash_profile instead.