I'm editing my PS1 prompt and I don't want to keep sourcing my bashrc to update it (since my bashrc resets other things too). I also don't want to copy and paste it over and over. Is there a way to edit the variable interactively, like using
nano (my default editor)?
The PS1 is mostly an example, because I want to do the same thing with other vars. The reason I want to do it interactively is that the variable is already quite long, and I just need to edit a few characters in it. And I only need to change it in the current shell.