Bash auto-fill highlighting

I would like to know if bash auto-join can be done to highlight the agreed part of the auto-complete sentence.

For example, I have directories with files such as:

LSFJOB_647169535 / LSFJOB_647158534 /

In this case, if I type LSF and press [TAB], I get: LSFJOB_6471

But then I need to focus to get which character I should enter next.

I would like bash to offer me something like:

LSFJOB_6471 69535 / LSFJOB_6471 58534 /

or

LSFJOB_6471 6 9535 / LSFJOB_6471 5 8534 /

Do you know a way to do this?

+4
source share
1 answer

That's a good question!

(SuperUser).

, , "ReadLine Variable", : colored-completion-prefix.

, Bash v4.4: c diff

bind -v|grep color

compgen, , /:

0

Source: https://habr.com/ru/post/1584255/


All Articles