[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Granular command completion
From: |
Dennis Williamson |
Subject: |
Re: [Help-bash] Granular command completion |
Date: |
Tue, 27 Nov 2018 17:38:03 -0600 |
On Tue, Nov 27, 2018, 4:35 PM Chet Ramey <address@hidden wrote:
> On 11/27/18 12:53 PM, Roman Bigler (Privat) wrote:
> > Hello Bashers,
> >
> > this might be a feature request, hope I’m posting to the correct place.
> If not, feel free to point me to the right place.
> >
> > I’d like to customize bash’s command completion to _only_ include
> aliases.
>
> You should be able to do this in bash-5.0 with the new `-I' (initial word)
> option to `complete'. If you want to grab 5.0-beta2 from the bash-5.0-
> testing branch or head from the devel branch you can try it out.
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU address@hidden http://tiswww.cwru.edu/~chet/
>
With Bash 5 beta 2 this seems to do what you want:
complete -r
complete -I -a
That's upper case i.
>