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

Re: single tab for completions in bash



On 2010-09-17 17:50 +0200, kamaraju kusumanchi wrote:

> say I have two files junk1, junk2.
>
> % ls
> junk1  junk2
>
> In zsh, If I do
> % ls j<tab>
>
> it becomes
>
> % ls junk
>
> another tab shows the list of completions
>
> % ls junk
> junk1  junk2

And further tabs cycle through the list of possible completions.

> However in bash, it takes 3 tabs to get the list of completions
>
> $ ls j<tab><tab><tab>
> junk1 junk2
>
> Is there any option that can be changed in bash, so that I can get the
> completions like zsh?

$ echo "set show-all-if-ambiguous on" >> ~/.inputrc

will show the completions immediately, saving a keystroke.  However, I
don't know a way how to cycle through the list of completions.

Sven


Reply to: