bug-bash
[Top][All Lists]
Advanced

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

Re: How to affect the completion order of bash completion?


From: Chet Ramey
Subject: Re: How to affect the completion order of bash completion?
Date: Mon, 23 Oct 2006 12:00:30 -0400

> First I did this: complete  -W "p3 p2 p1" mycommand
> 
> Then I of course tested it by typing: mycommand p<tab>
> 
> Now when I push tab button it offers first "p1", then "p2" .. in 
> "alpabetical" 
> order. However it would be nice if I could make complete to honor the order 
> in the word list.
> 
> Is there any way to make it first complete it with "p3" which is the first 
> one 
> in the list?

There is not; readline always sorts the list of matches.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                                Live Strong.
Chet Ramey, ITS, CWRU    chet@case.edu    http://tiswww.tis.case.edu/~chet/




reply via email to

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