[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vim like completion in bash?



On Mon, Mar 05, 2007 at 07:33:39PM -0500, cga2000 wrote:
> On Mon, Mar 05, 2007 at 03:36:35PM EST, Franck Joncourt wrote:
> > I may have missed something ; I am running Sid.
> > Enabling bash completion, it does not work. However, without bash
> > completion it does work ! Where is the trick ?

Ahhh!, I'm running Etch you're right.
touch bbb
touch bbbccc
touch jimdocbob

$cat *b<tab>
changes to
$cat bbb

$cat *c<tab>
changes to
$cat bbbccc

$cat *doc*
changes to
$cat jimdocbob

$apt-cache show bash
[..]
 .
 Included in the bash package is the Programmable Completion Code, by
 Ian Macdonald.
 .
[..]


> "completion" means _smart_ completion:
> if you cd (eg.) it should only accept directories.  If you "cd abc +
> <TAB>" and there are only regular files beginning with "abc" it will
> yell at you.  If  you telnet it will only accept (and do completion for)
> hosts and ignore everything else. 
> 
> etc. 
> 
> So either your bash completion stuff is broken (see
> /etc/bash_completion) or you are trying to vim to something that your
> bash_completion script thinks you shouldn't be vimming to.

Huh??

I can verify Franck's assertion.

You're guessing. Please don't. I thought you tested it and so I wasn't
going to bother ...

-- 
Chris.
======
Don't forget to check that your /etc/apt/sources.lst entries point to 
etch and not testing, otherwise you may end up with a broken system once
etch goes stable.



Reply to: