Created
December 11, 2015 12:36
-
-
Save mihigh/ead75ff55756680ae7cd to your computer and use it in GitHub Desktop.
Iterm2 - ssh change background color when in production
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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" |
Thats easy, add the opersit to your .bash_logout
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice.. but when exiting the SSH session the window remains red. . did I miss a return to original state setting?