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
#!/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() { |