On 4/21/16 2:42 PM, Grisha Levit wrote: > f() { COMPREPLY=(aaaaaaaaaaaaaa bbbbbbbbbbbbbb cccccccccccccc); } > complete -F f f > bind 'set completion-prefix-display-length 2' > > $ f dddd [TAB][TAB] > ...aaaaaaaaaa ...bbbbbbbbbb ...cccccccccc > > None of the completion entries share a common prefix, though the docs > suggest that only common prefixes are removed:
Bash-4.4 doesn't do this. > On a related note, colored-completion-prefix has no effect if > completion-prefix-display-length is greater than 0. Yes, the current implementation prioritizes completion-prefix-display-length over colored-completion-prefix -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/