Re: vim like completion in bash?
On Sun, Mar 04, 2007 at 12:21:51AM EST, zhengquan zhang wrote:
> Hello:
> I can :e *doc* in vim, pressing tab and it can help me find the document I
> need,
> but in bash if I use vi *doc* and press tab, nothing would happen, it can
> not find the file I want to edit
> Is there any switches to make it possible?
> Thank you.
>
> zhang
Works here on sarge.
You may want to try adding the following lines to your .bashrc:
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
Also, note that if there is more than one match you need to press <TAB>
a second time to display a list of matching files.
Thanks,
cga
Reply to: