How to move through terminal output by run commands?


I use Tmux, Neovim, and Zsh + oh-my-zsh in iTerm2 and I’m wondering if any of these have a plugin (or offer native support) for moving through the terminal outputs by run command.

In other words, is there a way to quickly navigate the terminal scrollback history/output/buffer (i.e. stdout + stderr) by the commands that were run to generate those outputs?

This would be helpful because sometimes a given command might produce a ton of output (e.g. when you install a big package or something) and it takes a while to navigate up to the scrollback history that came before it. In such cases, it would be helpful to be able to quickly jump back and forth between the command that was run and the following command (so that you can e.g. see the command that resulted in a given error).

Note, to be clear I am NOT referring to cycling through the history of commands that were run. I know that that is possible with the up/down arrows.

Also note, when I run commands, nothing about my prompt is left behind in the scrollback history, so I can search up by some pattern that’s only found in my prompt.

I briefly looked through the list of Tmux plugins here and Oh-My-Zsh plugins here but nothing jumped out at me for doing this.



Source link

Related Posts

About The Author

Add Comment