<?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>Code That Matters &#187; autocomplete</title>
	<atom:link href="http://www.codethatmatters.com/tag/autocomplete/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codethatmatters.com</link>
	<description>Pylons, rails, jQuery and other stuff that matters</description>
	<lastBuildDate>Sat, 16 Jul 2011 10:57: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>Git autocomplete in Mac OS X</title>
		<link>http://www.codethatmatters.com/2010/01/git-autocomplete-in-mac-os-x/</link>
		<comments>http://www.codethatmatters.com/2010/01/git-autocomplete-in-mac-os-x/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 08:23:32 +0000</pubDate>
		<dc:creator>henke</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://www.codethatmatters.com/?p=121</guid>
		<description><![CDATA[I always liked that my  Git installations on Unix and Linux comes with the contrib/complete/git-completion.bash script activated or easily activated. But its harder if you use the pre-built binaries for Mac OS X.
To get autocompletion to work on Mac OS X when installing the pre-built binaries do this.
UPDATE: Instead of step 1 and 2 [...]]]></description>
			<content:encoded><![CDATA[<p>I always liked that my  Git installations on Unix and Linux comes with the contrib/complete/git-completion.bash script activated or easily activated. But its harder if you use the pre-built binaries for Mac OS X.</p>
<p>To get autocompletion to work on Mac OS X when installing the pre-built binaries do this.<br />
<strong>UPDATE:</strong> Instead of step 1 and 2 below you can get the completion script directly from Github. <em>Thanks to Fredric.</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">curl http:<span class="sy0">//</span>github.com<span class="sy0">/</span>git<span class="sy0">/</span>git<span class="sy0">/</span>raw<span class="sy0">/</span>master<span class="sy0">/</span>contrib<span class="sy0">/</span>completion<span class="sy0">/</span>git-completion.bash <span class="re5">-O</span></pre></div></div>

<p><strong>UPDATE: 2011-01-03</strong> All github.com url are now https. <em>Thanks to Julio</em>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">curl https:<span class="sy0">//</span>github.com<span class="sy0">/</span>git<span class="sy0">/</span>git<span class="sy0">/</span>raw<span class="sy0">/</span>master<span class="sy0">/</span>contrib<span class="sy0">/</span>completion<span class="sy0">/</span>git-completion.bash <span class="re5">-O</span></pre></div></div>

<p><strong>UPDATE: 2011-07-15</strong> Added -L option to allow for curl to handle redirects.<em>Thanks to michaelyoung</em>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">curl https:<span class="sy0">//</span>github.com<span class="sy0">/</span>git<span class="sy0">/</span>git<span class="sy0">/</span>raw<span class="sy0">/</span>master<span class="sy0">/</span>contrib<span class="sy0">/</span>completion<span class="sy0">/</span>git-completion.bash <span class="re5">-OL</span></pre></div></div>

<p>1. Download the Git source from  <a href="http://git-scm.com/">git-scm.com</a>.<br />
2. Unpack and copy the completion script git-completion.bash found in contrib/completion to your home directory.</p>
<p>3. Add the following to your ~/.profile or ~/.bash_profile</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span class="kw3">source</span> ~<span class="sy0">/</span>git-completion.bash
&nbsp;
<span class="kw3">alias</span> <span class="re2">gco</span>=<span class="st_h">'git co'</span>
<span class="kw3">alias</span> <span class="re2">gci</span>=<span class="st_h">'git ci'</span>
<span class="kw3">alias</span> <span class="re2">grb</span>=<span class="st_h">'git rb'</span></pre></div></div>

<p>4. Add the following to your ~/.gitconfig</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span class="br0">&#91;</span><span class="kw3">alias</span><span class="br0">&#93;</span>
<span class="kw2">co</span> = checkout
ci = commit
rb = rebase</pre></div></div>

<p>Restart Terminal and start Tabbin&#8217;!</p>
<p>More Git tips that I found usefull can be found on Tim Dysinger&#8217;s blog <a href="http://dysinger.net/2007/12/30/installing-git-on-mac-os-x-105-leopard">http://dysinger.net/2007/12/30/installing-git-on-mac-os-x-105-leopard</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codethatmatters.com/2010/01/git-autocomplete-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>

