Existe uma solução alternativa para o seu problema.
Tente:
bind 'set completion-ignore-case on'
bind 'TAB:menu-complete'
bind 'set menu-complete-display-prefix on'
bind 'set show-all-if-ambiguous on'
Digite cd h
, Tab . Linha expande para cd hello
.
Em seguida, digite _ , a aba . Linha expandida para cd Hello_StackOverflow
Pressione a tecla Tab , a aba . Linha expandida para cd Hello_STACKOVERFLOW/
Explicação:
menu-complete
Similar to complete, but replaces the word to be completed with a single match from the list of possible completions. Repeated execution of menu-complete steps through the list of possible completions, inserting each match in turn. At the end of the list of completions, the bell is rung (subject to the setting of bell-style) and the original text is restored. Thiscommand is intended to be bound to TAB, but is unbound by default.
Disponível desde bash-2.02-alpha1
menu-complete-display-prefix
If set to On, menu completion displays the common prefix of the list of possible completions (which may be empty) before cycling through the list.
Disponível desde bash-4.2-alpha
show-all-if-ambiguous
This alters the default behavior of the completion functions. If set to On, words which have more than one possible completion cause the matches to be listed immediately instead of ringing the bell.
Trabalhe em conjunto com menu-complete-display-prefix
desde bash-4.3-alpha