Configure command prompt of bash/wsl2 terminal

Running bash/wsl2 terminal under Windows in RStudio, how do I permanently customize the command prompt.

export PS1="\\W\\$ "

This works, but does not persist after a restart.

Sorry, I had done the edit in the wrong file before. It is as usual in

nano ~/.bashrc

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.