<?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>Zero_Dogg's blog &#187; git</title>
	<atom:link href="http://blog.zerodogg.org/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zerodogg.org</link>
	<description>Geeky comments on geeky things</description>
	<lastBuildDate>Mon, 27 Sep 2010 16:37:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Dynamically loading git bash-completion</title>
		<link>http://blog.zerodogg.org/2009/10/12/dynamically-loading-git-bash-completion/</link>
		<comments>http://blog.zerodogg.org/2009/10/12/dynamically-loading-git-bash-completion/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 21:27:05 +0000</pubDate>
		<dc:creator>Zero_Dogg</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash completion]]></category>

		<guid isPermaLink="false">http://blog.zerodogg.org/?p=140</guid>
		<description><![CDATA[I have to admit, I love git. It has really made me more efficient, and I can&#8217;t honestly think of ever switching back to ie. svn. My shell is bash, and up until now I used a very simple bash completion for git, but at times I do see myself wanting something a bit more [...]]]></description>
			<content:encoded><![CDATA[<p>I have to admit, I love <a href="http://git-scm.com/">git</a>. It has really made me more efficient, and I can&#8217;t honestly think of ever switching back to ie. svn.</p>
<p>My shell is bash, and up until now I used a very simple bash completion for git, but at times I do see myself wanting something a bit more comprehensive. However, I really don&#8217;t want bash to be slow to open (of course, the definition of &#8220;slow&#8221; is quite individual &#8211; over a second is way too much ;), which it can be if it needs to load all bash completion definitions when starting. Therefore I wrote a small bash function for my .bashrc that will dynamically load the git bash completion when it first is accessed. Bash starts fast, and I get git bash completion &#8211; problem solved (well, the first time git bash completion is used, it of course takes a tad longer than normal because it needs to load it first, but that&#8217;s completely livable). As a bonus, it will fall back to my old and simple completion if the proper one is not available.</p>
<p><a href="http://random.zerodogg.org/snippets/gitdynacomp">Here&#8217;s the code snippet:</a><br />
<script src="http://gist.github.com/208248.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zerodogg.org/2009/10/12/dynamically-loading-git-bash-completion/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

