Eshell search history

I am using emacs eshell and would like to search my command history. In bash, you will do Cr, then type something, and then press Cr several times until you find the command you want. On eshell, it seems that I should enter Mr, and then type part of the team and press enter, then type Mr and enter again to get the next match and so on. This means that I must continue to do Mr {enter} Mr {enter} Mr {enter} again and again, and not just press Cr again and again without moving my hands, is there a better way? There is not much information about him.

+4
source share
1 answer

If the line you are looking for is at the beginning of the command, then eshell-previous-matching-input-from-input UP , Mp or Cc Mr is much more convenient than eshell-previous-matching-input Mr.

You can enter the first few characters of a command and press the UP or Mp key, and it will be cyclically executed only with the appropriate commands in the history.

+5
source

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


All Articles