[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to apply Bash completion usefully and more practically
From: |
Chet Ramey |
Subject: |
Re: How to apply Bash completion usefully and more practically |
Date: |
Mon, 26 Feb 2018 09:07:20 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
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/