Can I jump between previous / subsequent terminal command line commands?

I have been using zsh in OS X Terminal.app and for quite some time, I have been craving a way to jump back and forth between previous / subsequent prompts on the terminal output.

One convenience with this would be to be able to view (and track errors) at the end of each output of the command; eg. when you build material from a source using ./configure; make; make install.Note: I obviously don’t mean skipping back and forth in the history of the teams, but for a way to look at the end of each output of the team.

Has anyone heard of such functionality in the * nix world (Mac is also desirable)? Will it require some kind of OS-oriented terminal plugin, or can it be programmatically executed through a shell script that can be bound to a keyboard shortcut? Maybe I just think about it? :)

Edit: Here is an example script: let's say I want to compile and install some program (using the standard procedure ./configure && make && make install), and after the make command I encountered some errors. Now, as I understand it (maybe I'm wrong), the critical error causing the make command error usually appears in the last line (s) of the output, no? Anyway, at this moment I could do something like cat INSTALLto read the INSTALL document to check if there is something that I missed. NOW, if I want to go back to find out what happened that led to the failure of my original make command, I will have to manually scroll it to this position since my command cat INSTALLprinted a ton of text after it.

, - , "" ; ls, make, git status - "" .

+3
2

+ iterm. , ?

0

Emacs shell-mode, Emacs, . / , "" .

Emacs: Emacs, emacs , Esc-x ( Meta-x, " -", > > > [] > ). . shell.

, , Control-h m. , / :

C-c C-n         comint-next-prompt
C-c C-p         comint-previous-prompt

:

C-c C-r         comint-show-output
C-c C-o         comint-delete-output
0

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


All Articles