2 edited tags
| link
source | link

Bash prompt (PS1) broken and spews errors

I was modifying my .bashrc and made a mistake when editing my PS1 prompt. I should have tested it in my command line before modifying my .bashrc, but at this point it is too late.

The bash prompt keeps spewing the same error over and over again:

-bash: bad substitution: no closing `}' in ...

and I am not able to edit my .bashrc or issue any command. I am also not physically co-located with this machine so can only SSH.

How can I modify take control of my shell again and modify my .bashrc again please?