How to customize terminal prompt?

Hello,
is it possible to alter .bashrc as to obtain a more customized terminal prompt?
In particular, I am looking to place the path and the actual commands on two separate lines such as in:

# original
/Home/Documents/MyFolder$ ls -l
# custom
/Home/Documents/MyFolder
$ ls -l

Thank you

1 Like
export PS1='\w\n$ '
export PS1='${PWD}\n$ '

bash: GNU Bourne-Again SHell | bash Commands | Man Pages | ManKier

5 Likes

Thank you. Is there also a way to change the color of the first part? (the \w and ${PWD} bit?

1 Like
BGREEN="\[\e[1;32m\]"
RESET="\[\e[m\]"
export PS1="${BGREEN}\${PWD}${RESET}\n$ "

bash - How to change the output color of echo in Linux - Stack Overflow

1 Like