help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Converting from zsh


From: Chet Ramey
Subject: Re: [Help-bash] Converting from zsh
Date: Mon, 09 Jun 2014 11:40:59 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 6/8/14, 12:51 AM, grarpamp wrote:
> I really like to convert from zsh. In part because
> zsh has some posix issues I hit on. Anyway, the
> last conversion step keeping me away from bash
> is I haven't found bash's completion options for the
> following interactive...
> 
> zsh:
> cd /us [first tab, completes /usr]
> [second tab, displays list under /usr]
> [third and further tabs, cycles through possible
> completions dirs under /usr]

Try running the following from a bash prompt:

complete -r cd
complete -p cd
bind 'TAB:menu-complete'
bind 'set show-all-if-ambiguous on'

This will do everything the zsh mechanism does with one fewer tab.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]