Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #13746

Re: How to apply Bash completion usefully and more practically

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: How to apply Bash completion usefully and more practically
Date 2018-02-26 09:07 -0500
Message-ID <mailman.9747.1519654055.27995.bug-bash@gnu.org> (permalink)
References <CAH0GyZCnwwHQ1jwyLS-5XaSaBCBRUJ6FnTMn4ZrALhD3TRO7ZA@mail.gmail.com>

Show all headers | View raw


On 2/25/18 5:01 AM, Budi wrote:
> How to apply Bash completion in more useful way.
> If TAB key is pressed Bash just show a list of corresponding command, I
> thought it will scroll over all corresponding command on which the cursor
> of shell prompt is active. (just like traditional Windows cmd prompt)
> How to make it able to perform such ? Thanks so much in advance

If I understand this correctly, you want the default to be what readline
calls `menu completion'. You can bind tab to menu-complete to get what I
think you want:

bind 'TAB:menu-complete'

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: How to apply Bash completion usefully and more practically Chet Ramey <chet.ramey@case.edu> - 2018-02-26 09:07 -0500

csiph-web