![]() |
How to change the color of user@host text line of LXTerminal? - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Customization (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=8) +--- Forum: Desktop Customization (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=34) +--- Thread: How to change the color of user@host text line of LXTerminal? (/showthread.php?tid=5181) |
How to change the color of user@host text line of LXTerminal? - gabanmaven - 04-19-2018 Hello, complete newbie here. I have googled this topic, but everything related to this question was about ubuntu. Being a newbie myself, I tried it on my machine anyways, and of course it didn't work. I'm using stock terminal (LXTerminal). In the Preferences, the only options are to change font, font size, background color and foreground color. I'd like to change the color of user@host to be something else, so it's easier to differentiate which is command and which is output, especially in a long list. As SU, the user@host color changes to red, so that's awesome. Is it possible to do the same outside SU, say, change the user@host to light blue or something. Cheers!! Re: How to change the color of user@host text line of LXTerminal? - trinidad - 04-19-2018 Try the link below. Make sure the syntax looks like a match to your original before you copy and paste. http://ezprompt.net/ or read through this link https://www.howtogeek.com/307701/how-to-customize-and-colorize-your-bash-prompt/ TC Re: How to change the color of user@host text line of LXTerminal? - GregO - 04-19-2018 https://www.freecinema2022.gq/forums/other/colored-bash-prompt-for-linux-lite/ Close .bashrc and save changes and open a terminal. Re: How to change the color of user@host text line of LXTerminal? - GregO - 04-19-2018 (04-19-2018, 10:55 PM)GregO link Wrote: https://www.freecinema2022.gq/forums/other/colored-bash-prompt-for-linux-lite/ Re: How to change the color of user@host text line of LXTerminal? - gabanmaven - 04-20-2018 (04-19-2018, 10:55 PM)GregO link Wrote: https://www.freecinema2022.gq/forums/other/colored-bash-prompt-for-linux-lite/ Thank you, good Sir! Worked like magic! ![]() Re: How to change the color of user@host text line of LXTerminal? - GregO - 04-20-2018 (04-20-2018, 03:55 PM)gabanmaven link Wrote: [quote author=GregO link=topic=5361.msg40397#msg40397 date=1524178521] Thank you, good Sir! Worked like magic! ![]() [/quote] Glad it worked out for you. You can also change user@host color in .bashrc where you see the line with PS1 by changing [01;32m\] with one of the others on the list below. [01;30m\] Black [01;31m\] Red [01;32m\] Green [01;33m\] Yellow [01;34m\] Blue [01;35m\] Purple Replace the 0 with a 4 and it will be underlined. |