<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: bash programmable completion</title>
	<link>http://www.spugbrap.com/blog/2004/11/bash-programmable-completion/</link>
	<description>This is a repository for my favorite scripts, regexes, commandlines, utilities, code snippets, tips, and other geeky things that might be useful to someone googling for an obscure solution some day. It's also a place to share my thoughts about companies I've dealt with, my favorite lifehacks, observations of interesting human behavior, clever and/or evil marketing schemes I've run across, and anything else I feel compelled to write about.</description>
	<pubDate>Tue, 06 Jan 2009 14:30:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: ClintJCL</title>
		<link>http://www.spugbrap.com/blog/2004/11/bash-programmable-completion/#comment-8778</link>
		<dc:creator>ClintJCL</dc:creator>
		<pubDate>Fri, 10 Oct 2008 01:02:15 +0000</pubDate>
		<guid>http://www.spugbrap.com/blog/2004/11/bash-programmable-completion/#comment-8778</guid>
		<description>Wow. Does that come up often enough to make a difference? I think it's really cool that the shell has an option to do this, but I have to question if the time spent coming up with a solution ever pays dividend when compared to the lost time having something come up in a tab.  Type an extra letter, tab completion will go to where you want. I guess you're in situations where there are a lot instances of folders with the same name????? Is that what's happening???</description>
		<content:encoded><![CDATA[<p>Wow. Does that come up often enough to make a difference? I think it&#8217;s really cool that the shell has an option to do this, but I have to question if the time spent coming up with a solution ever pays dividend when compared to the lost time having something come up in a tab.  Type an extra letter, tab completion will go to where you want. I guess you&#8217;re in situations where there are a lot instances of folders with the same name????? Is that what&#8217;s happening???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Big Al</title>
		<link>http://www.spugbrap.com/blog/2004/11/bash-programmable-completion/#comment-8725</link>
		<dc:creator>Big Al</dc:creator>
		<pubDate>Tue, 07 Oct 2008 05:36:37 +0000</pubDate>
		<guid>http://www.spugbrap.com/blog/2004/11/bash-programmable-completion/#comment-8725</guid>
		<description>Hmm, it really didn't like the code in there.  Just go to the bottom of this page: http://dotfiles.org/~hanekomu/.bash_completion

All is explained.  No more annoying CVS directories in your tab complete.</description>
		<content:encoded><![CDATA[<p>Hmm, it really didn&#8217;t like the code in there.  Just go to the bottom of this page: <a href="http://dotfiles.org/~hanekomu/.bash_completion">http://dotfiles.org/~hanekomu/.bash_completion</a></p>
<p>All is explained.  No more annoying CVS directories in your tab complete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Big Al</title>
		<link>http://www.spugbrap.com/blog/2004/11/bash-programmable-completion/#comment-8724</link>
		<dc:creator>Big Al</dc:creator>
		<pubDate>Tue, 07 Oct 2008 05:35:07 +0000</pubDate>
		<guid>http://www.spugbrap.com/blog/2004/11/bash-programmable-completion/#comment-8724</guid>
		<description>Not only that, you can hack bash_completion's code to omit CVS directories, just like you wanna.

Change:

&lt;code&gt;
        # Use standard dir completion if no CDPATH or parameter starts with /,
        # ./ or ../
        if [ -z "${CDPATH:-}" ] &#124;&#124; [[ "$cur" == ?(.)?(.)/* ]]; then
                _filedir -d
                return 0
        fi

&lt;/code&gt;

To:

&lt;code&gt;
        # Use standard dir completion if no CDPATH or parameter starts with /,
        # ./ or ../
        if [ -z "${CDPATH:-}" ] &#124;&#124; [[ "$cur" == ?(.)?(.)/* ]]; then
                _filedir -d

                # omit CVS directories
                for (( i = 0; i 


Courtesy of: http://dotfiles.org/~hanekomu/.bash_completion</description>
		<content:encoded><![CDATA[<p>Not only that, you can hack bash_completion&#8217;s code to omit CVS directories, just like you wanna.</p>
<p>Change:</p>
<p><code><br />
        # Use standard dir completion if no CDPATH or parameter starts with /,<br />
        # ./ or ../<br />
        if [ -z "${CDPATH:-}" ] || [[ "$cur" == ?(.)?(.)/* ]]; then<br />
                _filedir -d<br />
                return 0<br />
        fi</p>
<p></code></p>
<p>To:</p>
<p><code><br />
        # Use standard dir completion if no CDPATH or parameter starts with /,<br />
        # ./ or ../<br />
        if [ -z "${CDPATH:-}" ] || [[ "$cur" == ?(.)?(.)/* ]]; then<br />
                _filedir -d</p>
<p>                # omit CVS directories<br />
                for (( i = 0; i </p>
<p>Courtesy of: <a href="http://dotfiles.org/~hanekomu/.bash_completion">http://dotfiles.org/~hanekomu/.bash_completion</a></code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
