Julian20151006
Julian20151006

Reputation: 321

How to configure vscode terminal command line prompt color?

In ~/.bash_profile, I added this line:

PS1="[\[\e[33;m\]\t \[\e[32;m\]\u@\H \[\e[31;m\]\W]\[\e[33;m\]\#\e[m\$ "

And in iterm2, the command line prompt looks like below:

enter image description here


But when I launched vscode and opened the terminal, the terminal looks like this:

enter image description here

How can I configure the vscode terminal prompt to be colorful ?

Upvotes: 0

Views: 373

Answers (1)

Mark
Mark

Reputation: 182931

The basic problems are the ;'s before the m's. Try this:

PS1="[\[\e[33m\]\t \[\e[32m\]\u@\H \[\e[31m\]\W]\[\e[33m\]\#\[\e[m\$"

Upvotes: 1

Related Questions