1

linux noob here. I'm configuring the appearance my terminal via some commands like: vi $HOME/.bashrc then add do this command export PS1="\e[0;32m[\u@\h \W]$ \e[m "

and now my terminal behaves like this terminal appearance

Need your help on resetting the terminal to default appearance

Appreciate if someone can help me. Thanks so much!

1 Answers1

2

The default appearance for PS1 in Ubuntu 18.04 and most likely Ubuntu 20.04 as well is

\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \$

if you add to your .bashrc export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \$ " you can get the default behavior back.

Esther
  • 3,932