Skip to content

Instantly share code, notes, and snippets.

View jxmtst's full-sized avatar

Jun Matsushita jxmtst

View GitHub Profile
@jxmtst
jxmtst / sshColor
Last active February 6, 2019 05:13 — forked from BugRoger/ssh-background
Changes iTerm2's background color based on host configuration
#!/bin/bash
# Installation:
# 1. Save this script to /some/bin/sshColor
# 2. chmod 755 /some/bin/sshColor
# 3. alias ssh=/some/bin/sshColor
# 4. Configure your host colors below.
#
# checked: GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
# Configuration: