<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Fixing Git Bash Completion</title>
	<atom:link href="http://archlinux.me/dusty/2010/01/13/fixing-git-bash-completion/feed/" rel="self" type="application/rss+xml" />
	<link>http://archlinux.me/dusty/2010/01/13/fixing-git-bash-completion/</link>
	<description>A little more of everything, please</description>
	<lastBuildDate>Sat, 28 Jan 2012 01:59:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Daenyth</title>
		<link>http://archlinux.me/dusty/2010/01/13/fixing-git-bash-completion/#comment-160</link>
		<dc:creator>Daenyth</dc:creator>
		<pubDate>Wed, 27 Jan 2010 15:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://archlinux.me/dusty/?p=249#comment-160</guid>
		<description>You may also be interested in git-sh, which I have in AUR as git-sh-git. It provides a custom prompt with aliases and some other git-based goodies. I find that it makes working with git even more comfortable.</description>
		<content:encoded><![CDATA[<p>You may also be interested in git-sh, which I have in AUR as git-sh-git. It provides a custom prompt with aliases and some other git-based goodies. I find that it makes working with git even more comfortable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allan</title>
		<link>http://archlinux.me/dusty/2010/01/13/fixing-git-bash-completion/#comment-159</link>
		<dc:creator>Allan</dc:creator>
		<pubDate>Thu, 14 Jan 2010 05:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://archlinux.me/dusty/?p=249#comment-159</guid>
		<description>I used to find that bash completion broke to many things so I do not have it enabled anymore.  Instead I have this function in my .bashrc:

git_branch() {
  branch=$(git branch 2&gt; /dev/null &#124; grep &quot;^*&quot; &#124; tr -d &quot;* &quot;)
  [ -n &quot;$branch&quot; ] &amp;&amp; printf &quot;(%s)&quot; $branch
}

Looking at the __git_ps1 function, it seems to give a lot more information... perhaps I will look into that</description>
		<content:encoded><![CDATA[<p>I used to find that bash completion broke to many things so I do not have it enabled anymore.  Instead I have this function in my .bashrc:</p>
<p>git_branch() {<br />
  branch=$(git branch 2&gt; /dev/null | grep &#8220;^*&#8221; | tr -d &#8220;* &#8220;)<br />
  [ -n "$branch" ] &amp;&amp; printf &#8220;(%s)&#8221; $branch<br />
}</p>
<p>Looking at the __git_ps1 function, it seems to give a lot more information&#8230; perhaps I will look into that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codemac</title>
		<link>http://archlinux.me/dusty/2010/01/13/fixing-git-bash-completion/#comment-158</link>
		<dc:creator>codemac</dc:creator>
		<pubDate>Wed, 13 Jan 2010 21:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://archlinux.me/dusty/?p=249#comment-158</guid>
		<description>This is not a command, but a function provided in /etc/bash_completion.d/git

By unsetting promptvar, prompt strings will not have variable and parameter expansion after being expanded.  Which with your simple prompt isn&#039;t an issue, and was probably causing the $() to be expanded earlier than you wanted, meaning the __git_ps1 function wasn&#039;t even being run.

Anyways, go team git.</description>
		<content:encoded><![CDATA[<p>This is not a command, but a function provided in /etc/bash_completion.d/git</p>
<p>By unsetting promptvar, prompt strings will not have variable and parameter expansion after being expanded.  Which with your simple prompt isn&#8217;t an issue, and was probably causing the $() to be expanded earlier than you wanted, meaning the __git_ps1 function wasn&#8217;t even being run.</p>
<p>Anyways, go team git.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

