Last active
August 29, 2015 14:07
-
-
Save amccarty/4456493ccd880eb9a368 to your computer and use it in GitHub Desktop.
Change Terminal.app color scheme when ssh'ing to a remote host
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
## This assumes the existence of Solar-Dark and Solar-Remote settings profiles | |
function tabc { | |
NAME=$1; if [ -z "$NAME" ]; then NAME="Solar-Dark"; fi | |
osascript -e "tell application \"Terminal\" to set current settings of front w | |
indow to settings set \"$NAME\"" | |
} | |
function ssh { | |
tabc "Solar-Remote" | |
/usr/bin/ssh "$@" | |
tabc "Solar-Dark" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment