Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'SSH_HOST: New Version' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
SSH_HOST: New Version
Authored by: bendybendy on Aug 10, '05 01:22:04PM
Sweeeet! I often ssh in as another username, so to strip out the username from the "ssh user@hostname" evocation, I changed your color-fetching line to

cols=($(echo -ne ${host/[a-z]*@//} | tr 'A-Z' 'a-z' | tr -cd 'a-z' | od -t d1 | \
            head -n1 | cut -c10-22));


[ Reply to This | # ]
SSH_HOST: New Version
Authored by: bendybendy on Aug 10, '05 01:29:18PM

and I should add, if you ssh into servers named "www" you should put specifc colors into the case statement, lest your screen go to a very pale grey.



[ Reply to This | # ]