bash - ignore dot files for autocompletion?

Gordon Marx gcmarx-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Nov 9 09:02:18 EST 2010


On Tue, Nov 9, 2010 at 8:56 AM, Robert La Ferla <robert-2x9W/xM/j7LR7s880joybQ at public.gmane.org> wrote:

> In our source code, we have .svn directories (for Subversion) and when
> navigating thru a directory using the TAB key, the .svn directories also
> appear for autocompletion.  Is there a way to get bash to ignore them?  I
> tried set match-hidden-files off but that didn't seem to work.
>

Google claims that if you're doing this in .bashrc, you should do:
bind 'set match-hidden-files off'
You could also try setting FIGNORE="svn", but this will keep you from
completing any file that ends in svn, so that may not be what you want.

Good luck,
Gordon





More information about the Discuss mailing list