<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: git bash completion + git aliases</title>
	<atom:link href="http://www.benmabey.com/2008/05/07/git-bash-completion-git-aliases/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benmabey.com/2008/05/07/git-bash-completion-git-aliases/</link>
	<description>[ software_engineering, ruby, rants, randomness ]</description>
	<pubDate>Thu, 24 Jul 2008 22:58:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: admin</title>
		<link>http://www.benmabey.com/2008/05/07/git-bash-completion-git-aliases/#comment-935</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 20 Jul 2008 15:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmabey.com/?p=17#comment-935</guid>
		<description>@bryanl 
Thanks.  I actually already have those git aliases, and more, setup. However, I still like the shorter bash aliases much better since I am using them all of the time.</description>
		<content:encoded><![CDATA[<p>@bryanl<br />
Thanks.  I actually already have those git aliases, and more, setup. However, I still like the shorter bash aliases much better since I am using them all of the time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bryanl</title>
		<link>http://www.benmabey.com/2008/05/07/git-bash-completion-git-aliases/#comment-934</link>
		<dc:creator>bryanl</dc:creator>
		<pubDate>Sun, 20 Jul 2008 12:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmabey.com/?p=17#comment-934</guid>
		<description>Git has support for aliases.

Add the following to your ~/.gitconfig

&lt;code&gt;
[alias]
        ci = commit
        co = checkout
&lt;/code&gt;

Now you don't need those funky bash aliases.</description>
		<content:encoded><![CDATA[<p>Git has support for aliases.</p>
<p>Add the following to your ~/.gitconfig</p>
<p><code><br />
[alias]<br />
        ci = commit<br />
        co = checkout<br />
</code></p>
<p>Now you don&#8217;t need those funky bash aliases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Git Info (kinda like &#8217;svn info&#8217;)</title>
		<link>http://www.benmabey.com/2008/05/07/git-bash-completion-git-aliases/#comment-780</link>
		<dc:creator>Git Info (kinda like &#8217;svn info&#8217;)</dc:creator>
		<pubDate>Thu, 12 Jun 2008 17:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmabey.com/?p=17#comment-780</guid>
		<description>[...] found out about tab completion for git this morning. Very nice, especially for those of us who are just getting used to git [...]</description>
		<content:encoded><![CDATA[<p>[...] found out about tab completion for git this morning. Very nice, especially for those of us who are just getting used to git [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Mabey</title>
		<link>http://www.benmabey.com/2008/05/07/git-bash-completion-git-aliases/#comment-167</link>
		<dc:creator>Ben Mabey</dc:creator>
		<pubDate>Thu, 08 May 2008 17:03:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmabey.com/?p=17#comment-167</guid>
		<description>Peter,
After playing around with your suggestion I found out that it will work out of the box if I use the actual checkout command, like so:

alias gco='git checkout'

It doesn't appear to need the space, however.  Also, my aliases with flags in them never seem to expand. So given this:

alias gbd='git branch -d'

I can't seem to have it tab complete my branches unless I add this:

complete -o default -o nospace -F _git_checkout gbd


So maybe this method is only needed when there are flags in the alias.</description>
		<content:encoded><![CDATA[<p>Peter,<br />
After playing around with your suggestion I found out that it will work out of the box if I use the actual checkout command, like so:</p>
<p>alias gco=&#8217;git checkout&#8217;</p>
<p>It doesn&#8217;t appear to need the space, however.  Also, my aliases with flags in them never seem to expand. So given this:</p>
<p>alias gbd=&#8217;git branch -d&#8217;</p>
<p>I can&#8217;t seem to have it tab complete my branches unless I add this:</p>
<p>complete -o default -o nospace -F _git_checkout gbd</p>
<p>So maybe this method is only needed when there are flags in the alias.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Havens</title>
		<link>http://www.benmabey.com/2008/05/07/git-bash-completion-git-aliases/#comment-166</link>
		<dc:creator>Peter Havens</dc:creator>
		<pubDate>Thu, 08 May 2008 16:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmabey.com/?p=17#comment-166</guid>
		<description>I'm not positive, but I think you can leave a space at the end of your alias and the alias will be expanded inline, which will allow other completions. So, for example:

alias gco='git co ' # notice the ending space</description>
		<content:encoded><![CDATA[<p>I&#8217;m not positive, but I think you can leave a space at the end of your alias and the alias will be expanded inline, which will allow other completions. So, for example:</p>
<p>alias gco=&#8217;git co &#8216; # notice the ending space</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Cahoon</title>
		<link>http://www.benmabey.com/2008/05/07/git-bash-completion-git-aliases/#comment-158</link>
		<dc:creator>Jake Cahoon</dc:creator>
		<pubDate>Thu, 08 May 2008 06:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmabey.com/?p=17#comment-158</guid>
		<description>Looks sweet, I'll have to try it.</description>
		<content:encoded><![CDATA[<p>Looks sweet, I&#8217;ll have to try it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
