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