SOLVED:How do I make my Bash prompt look like this?

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
penguin7009
Level 1
Level 1
Posts: 11
Joined: Sun Apr 15, 2007 9:11 pm

SOLVED:How do I make my Bash prompt look like this?

Post by penguin7009 »

Hi all and thank you for this great place to use and discuss Mint :D

Does anyone know how they did this to the terminal in the attached :?:
I would ask this on the Comfusion forums but its in Spanish and I can't figure out how to register.

Thanks penguin
Mate-terminal-edit.jpg
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29614
Joined: Wed Jul 06, 2011 3:58 am

Re: How do I make my Bash prompt look like this?

Post by xenopeek »

Moved here and updated your topic title to reflect better the question you are asking.
Image
penguin7009
Level 1
Level 1
Posts: 11
Joined: Sun Apr 15, 2007 9:11 pm

Re: How do I make my Bash prompt look like this?

Post by penguin7009 »

HI all, OK got it solved:

GOTO your home folder/view/show hidden:

Open .bashrc

Paste this at the very bottom of the file:

PS1='\[\e[1m\]┌─[\[\033[0;47;30m\]User-Terminal\[\033[0;43;91m\]•\[\033[0;101;31m\]•\[\033[0;41;91m\]•\[\033[0;0m\]]──[$PWD] \n\[\e[1m\]└─[\$]\[\e[0m\] '

After that save and your command prompt will be glorified :D

penguin
Locked

Return to “Scripts & Bash”