Created
January 28, 2011 17:35
-
-
Save jish/800608 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| change_iterm_colors() { | |
| osascript -e "tell application \"iTerm\"\ | |
| to tell the current terminal\ | |
| to tell the current session\ | |
| to set the background color to \"$1\"" | |
| osascript -e "tell application \"iTerm\"\ | |
| to tell the current terminal\ | |
| to tell the current session\ | |
| to set the foreground color to \"$2\"" | |
| } | |
| ssh() { | |
| change_iterm_colors blue white | |
| /usr/bin/ssh "$@" | |
| change_iterm_colors white black | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment