Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Iterm2 - ssh change background color when in production
# .bash_profile
# Copy this file on the desired machine.
# This script will change your iterm tab color and the background for that tab.
# Requirements
# - iterm as terminal
# - a profile named Prod in iterm. You can configure it how ever you want. A profile can be found in Preferences -> Profiles
# Set tab color to red
echo -e "\033]6;1;bg;red;brightness;255\a"
# Set window profile ( in my case, Prod profile will make the background red)
echo -e "\033]50;SetProfile=Prod\a"
@gpinkham

This comment has been minimized.

Copy link

commented Mar 30, 2016

nice.. but when exiting the SSH session the window remains red. . did I miss a return to original state setting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.