Skip to content

Instantly share code, notes, and snippets.

@awol
awol / ssh-background
Last active September 2, 2015 10:09 — forked from BugRoger/ssh-background
Changes iTerm2's background color based on host configuration
#!/usr/bin/env bash
# Installation:
# 1. Save this script to /some/bin/ssh-background
# 2. chmod 755 /some/bin/ssh-background
# 3. alias ssh='. /some/bin/ssh-background'
# 4. Configure your host colors below.
# 5. Define environment variables ssh_<colour>=( host1 hostmatch1 ... )
# 6. Or just type ssh <colour> hostname
set_color() {