Requires iTerm2 >= Build 1.0.0.20110804
- Copy to home folder. E.g: ~/iterm2_ssh_color.sh
- Create different profiles in iTerm2 (Preferences -> Profiles)
- Update iterm2_color.sh ssh_host_config section with ssh host names & corresponding configuration
- Open
/.bash_profile and add alias ssh=/iterm2_ssh_color.sh - Restart iTerm2 terminal or execute source ~/.bash_profile
References: