<?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: Bash Completion</title>
	<atom:link href="http://sixohthree.com/867/bash-completion/feed" rel="self" type="application/rss+xml" />
	<link>http://sixohthree.com/867/bash-completion</link>
	<description>The Weblog of Adam Backstrom</description>
	<lastBuildDate>Sun, 01 Jan 2012 21:48:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: pickup112</title>
		<link>http://sixohthree.com/867/bash-completion/comment-page-1#comment-4270</link>
		<dc:creator>pickup112</dc:creator>
		<pubDate>Thu, 24 Nov 2011 14:52:41 +0000</pubDate>
		<guid isPermaLink="false">http://sixohthree.com/?p=867#comment-4270</guid>
		<description>how can i do if I have two parameter for completion</description>
		<content:encoded><![CDATA[<p>how can i do if I have two parameter for completion</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ægir</title>
		<link>http://sixohthree.com/867/bash-completion/comment-page-1#comment-3627</link>
		<dc:creator>Ægir</dc:creator>
		<pubDate>Sun, 22 Aug 2010 14:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://sixohthree.com/?p=867#comment-3627</guid>
		<description>Thanks for the post.

I just used it to do my completion fomr my code directory. dis a smal modification. insed of using fixed number of char to cut, I use perl to remove alla directories exeps the last one. this makes the code more flexible if you ever want to move your files. 

&lt;code&gt;
c() { cd ~/code/$1 ; }

_code() {
&#160;&#160;&#160;&#160;local cur
&#160;&#160;&#160;&#160;cur=${COMP_WORDS[COMP_CWORD]}
&#160;&#160;&#160;&#160;COMPREPLY=( $( compgen -d ~/code/$cur &#124; perl -pi -e &#039;s/.*\/(.*)/$1\//g&#039; ) )
}

complete -o nospace -F _code c
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for the post.</p>
<p>I just used it to do my completion fomr my code directory. dis a smal modification. insed of using fixed number of char to cut, I use perl to remove alla directories exeps the last one. this makes the code more flexible if you ever want to move your files. </p>
<p><code><br />
c() { cd ~/code/$1 ; }</p>
<p>_code() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;local cur<br />
&nbsp;&nbsp;&nbsp;&nbsp;cur=${COMP_WORDS[COMP_CWORD]}<br />
&nbsp;&nbsp;&nbsp;&nbsp;COMPREPLY=( $( compgen -d ~/code/$cur | perl -pi -e 's/.*\/(.*)/$1\//g' ) )<br />
}</p>
<p>complete -o nospace -F _code c<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://sixohthree.com/867/bash-completion/comment-page-1#comment-3455</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Wed, 19 May 2010 04:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://sixohthree.com/?p=867#comment-3455</guid>
		<description>For those interested in writing their own completion script, you might like to look into &lt;a href=&quot;http://jan.tomka.name/project/clearcase-completion-bash&quot; rel=&quot;nofollow&quot;&gt;ClearCase Completion for Bash&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>For those interested in writing their own completion script, you might like to look into <a href="http://jan.tomka.name/project/clearcase-completion-bash" rel="nofollow">ClearCase Completion for Bash</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

