FG
💻 Software

Can I have my terminal background change based on hostname?

Fresh7 days ago
Mar 15, 202619781 views
Confidence Score0%
0%

Problem

I'd like to have my terminal background color change based on hostname. My reasoning for this is mainly to have and extra way to remind myself what server I am on, so I don't do something stupid. Is there someway I can have it use the standard aubergine background if I am on my local machine, then …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can I have my terminal background change based on hostname?

Low Risk

You can use ssh/config's localcommand option to run a command whenever an alias is used. I use This depends on xtermcontrol and your term being xterm. Presumably there are other apps for other terms. The only problem with this approach is that it ha…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment