Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block awol

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
awol / ssh-background
Last active Sep 2, 2015 — forked from BugRoger/ssh-background
Changes iTerm2's background color based on host configuration
View ssh-background
#!/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() {
accountPrefix="Assets:Current Assets:Cash"
lastDate=$(date +"%d/%m/%y")
while getopts "a:" c
case $c in
'a') accountPrefix=$OPTARG
*) echo "Usage: $0 [-a accountPrefix (default='Assets:Current Assets:Cash')] <csvfile ...>"
You can’t perform that action at this time.