<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Snow Giraffe Tech &#187; ssh</title>
	<atom:link href="http://www.snowgiraffe.com/tech/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.snowgiraffe.com/tech</link>
	<description>rails, rubies, and sometimes dolphins</description>
	<lastBuildDate>Mon, 07 Jun 2010 14:36:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Colorful SSH Terminals with Applescript</title>
		<link>http://www.snowgiraffe.com/tech/222/colorful-ssh-terminals-with-applescript/</link>
		<comments>http://www.snowgiraffe.com/tech/222/colorful-ssh-terminals-with-applescript/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 21:11:41 +0000</pubDate>
		<dc:creator>blythe</dc:creator>
				<category><![CDATA[Computers and coding]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.snowgiraffe.com/tech/?p=222</guid>
		<description><![CDATA[Color your ssh terminals differently using Applescript. 
]]></description>
			<content:encoded><![CDATA[<p>I shell into a lot servers at the same time, and I wanted each terminal to be a different color so I don&#8217;t accidently say email eleventy billion people on the production server. I got to play applescript which made me want to cry I dunno if DOS is better.. OMG.</p>
<p><a href="http://snowgiraffe.com/downloads/other/applescript/bssh"><img class="aligncenter size-medium wp-image-224" title="colorful terminals prompts" src="http://www.snowgiraffe.com/tech/wp-content/uploads/2009/02/picture-2-300x187.png" alt="colorful terminals prompts" width="300" height="187" /></a></p>
<p>Copy this: <a href="http://snowgiraffe.com/downloads/other/applescript/bssh" target="_blank">bssh</a> to your <span class="inline_code"> /usr/local/bin</span></p>
<p>Make sure your local bin is in your path and make the file executable:</p>
<p><code>export PATH=$PATH:/usr/local/bin<br />
chmod +x /usr/local/bin/bssh</code></p>
<p>In your <span class="inline_code">~/.ssh/config</span> file you should have a list of servers. Replace them with the names used in the bssh file. For example, if you have <span class="orange_text&gt;dragon&lt;/span&gt; in your list, replace &lt;span style=">prod</span>in the bssh script with <span class="orange_text">dragon</span> . You might also want to edit the colors.</p>
<p>Then, instead of<br />
<code> ssh dragon</code><br />
Use:<br />
<code>bssh dragon</code></p>
<p>And behold the screen changes colors.</p>
<p>If this makes no sense to you at all, don&#8217;t use this. You probably should not ssh to anything. Maybe someday I will make it read a pretty yaml or xml file instead of hard coding server names. Then again, Applescript did make me cry in my soup. Don&#8217;t hold your breath unless N2O is involved.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snowgiraffe.com/tech/222/colorful-ssh-terminals-with-applescript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
