Workaround for using terminal profiles

huff huffylinux at gmail.com
Wed Oct 19 17:39:50 CEST 2011


On Wed, 19 Oct 2011 17:44:54 +1100 Andrew Spiers wrote:

> I've been trying to figure out a way to use different font colors
> for different terminal windows. The reason for this is to have a
> visual reminder of which machine I am connected to.

I don't think this is what you are asking for, but something like
this may work for you.  I put a section like this for each
computer in my .bashrc, which is the same on all machines:

if [ `hostname` = "SomeOtherComputer" ]  ; then
    PS1="\[\033[32m\]\u at SomeOtherComputer \w \$ \[\033[0m\]"     # no title for now
fi

Change SomeOtherComputer to the hostname of your other machine.  :)

You can also just enter 
	PS1="\[\033[32m\]\u at SomeOtherComputer \w \$ \[\033[0m\]"
at the command line to test it and change colors, etc, without
editing and logging in and out.

Sorry if that is all stuff you already know...


More information about the Xfce mailing list