Answer the question
In order to leave comments, you need to log in
Command completion from history in bash?
Good day, dear ones!
Interested in the following feature in bash:
Let me type
cat /etc/test
cat /etc/test2
cat /e
cat /etc/test2
cat /etc/test
Answer the question
In order to leave comments, you need to log in
Open man bash and read the section about READLINE there (you can find it with /^READLINE in less).
Lots of Emacs combinations work there. And incremental history search via Ctrl + r is one of them.
There you can manage words (cut, paste, swap, jump across words), manage characters, manage a line, there are even macros.
Запись макроса, который вставляет символы abc, и дальнейший вызов его пять раз:
C-x (
abc
C-x )
M-5
C-x e
The question is kind of unclear.
what you ask works out of the box.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question