<?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>Sentia &#124; Sydney IT Consultancy, Software Development, Ruby on Rails, Web Application Development, Rails Development, Test Driven Development, Microsoft.Net, Asp.Net , Agile, Continuous Integration Training, iPhone development &#187; bash</title>
	<atom:link href="http://www.sentia.com.au/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sentia.com.au</link>
	<description>Sentia company website and blog about all things development, Ruby on Rails, Microsoft .Net, ASP.Net, C#.Net, Agile web development, Test Driven Development</description>
	<lastBuildDate>Fri, 27 Aug 2010 05:10:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cool colours and GitHub branch in Terminal</title>
		<link>http://www.sentia.com.au/2009/06/cool-colours-and-github-branch-in-terminal/</link>
		<comments>http://www.sentia.com.au/2009/06/cool-colours-and-github-branch-in-terminal/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 01:17:18 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://sentia.com.au/?p=285</guid>
		<description><![CDATA[There are many posts out there about making terminal have nice colours and getting it to display your projects GitHub branch. So l thought l would post mine
Here is what my terminal looks like.

Yes l am using Ryan Bates railscasts as my sample project (Thanks Ryan). As you can see it has the username@machine and [...]]]></description>
			<content:encoded><![CDATA[<p>There are many posts out there about making terminal have nice colours and getting it to display your projects GitHub branch. So l thought l would post mine</p>
<p>Here is what my terminal looks like.</p>
<p><img src="http://sentia.com.au/wp-content/uploads/2009/06/picture-4.png" alt="my terminal" title="my terminal" width="438" height="73" class="alignnone size-full wp-image-286" /></p>
<p>Yes l am using Ryan Bates railscasts as my sample project (Thanks Ryan). As you can see it has the username@machine and then if you are in a project running git is also has the branch.</p>
<p>All you need to do it add the following to either your bash_login or bash_profile depending on what you are using. So first you run</p>
<pre class="brush: ruby;">
   mate ~/.bash_login
</pre>
<p>I am using textmate to edit this file. Once there simple add the following</p>
<pre class="brush: ruby;">
export CLICOLOR=1
export TERM=xterm-color
export LSCOLORS=gxfxcxdxbxegedabagacad  # cyan directories
export PS1=&quot;\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ \`ruby -e \&quot;print (%x{git branch 2&gt; /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\&quot;\`\[\033[37m\]$\[\033[00m\] &quot;
</pre>
<p>Save the file and reload your bash like so and you are good to go enjoy.</p>
<pre class="brush: ruby;">
  . ~/.bash_login
</pre>
<p>Of course you can change the colour of the font but ill leave that to you</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2009/06/cool-colours-and-github-branch-in-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
