SoftDux Hosting
Please Login or Register

Knowledgebase

How can I set a nice looking bash prompt on my Linux VPS?

Add the following lines to the end of /etc/profile


PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\[\e[0m\]\[\e[31;1m\]\u@\[\e[34;1m\]\h:[\W]$\[\e[0m\] "
export PS1

 



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter