Skip to content

Instantly share code, notes, and snippets.

@georgepalmer
Created February 24, 2012 13:52
Show Gist options
  • Save georgepalmer/1901068 to your computer and use it in GitHub Desktop.
Save georgepalmer/1901068 to your computer and use it in GitHub Desktop.
Red iTerm2 console when using ssh
Edit your ~/.ssh/config:
Host myserver
HostName www.yourserver.com
User deploy
LocalCommand echo -e "\033]Phff0000\033\\"
PermitLocalCommand yes
Then:
ssh myserver
Only downside is the red doesn't go when you log off the server. Any ideas on how to solve this appreciated (although personally I tend to clean up ssh windows by habit so it's not a massive problem for me)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment