Skip to content

Instantly share code, notes, and snippets.

@seamountain
seamountain / ssh-host-color.sh
Last active August 17, 2016 07:42
set the background color of iTerm based on ssh-host
#!/bin/bash
#
# (1) copy to: ~/bin/ssh-host-color
# (2) set: alias ssh=~/bin/ssh-host-color
#
# Inspired from http://talkfast.org/2011/01/10/ssh-host-color
# Fork from https://gist.github.com/773849
#
set_term_bgcolor(){