I would like to change the bash command prompt string from
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
to
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
Specifically, it is changing the colour from green to red, by change 32 to 31.
I would like to change the file rather than deploy/copy in a full file.
I would like to search through the file, and change the line if it matches either scenario.
I tried escaping all of the special characters, but the YAML regex complained about the \ and various characters.
Best Answer
Even if this ticket is over two years old, I found me in the same situation.
I tried a bit and found a solution to this challenge
Hope this might help others too.