bug-bash
[Top][All Lists]
Advanced

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

How to affect the completion order of bash completion?


From: Markus Vuori
Subject: How to affect the completion order of bash completion?
Date: Mon, 23 Oct 2006 17:53:51 +0300
User-agent: KMail/1.9.5

Hi,

I have a problem with bash programmable completion.

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?

If there's none, It would be nice to have this feature in future bash 
releases. :)

-- 
Regards,

Markus Vuori
Software designer, System administrator
PGP key: http://vuoret.net/markus/?p=pgp
Skillnet Oy, http://www.skillnet.fi/

+358 14 445 1542
+358 50 408 8814




reply via email to

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