Logo ❮ Zi ❯ Plugin - Ztrace
Ztrace plugin allows to catch output of commands in background.
By issuing:
ztstart 3
We inform Ztrace to catch output of 3 commands. Click image above to watch the asciicast.
Add zi load z-shell/ztrace to your .zshrc file. zi will handle
cloning the plugin for you automatically the next time you start zsh.
Adding antigen bundle z-shell/ztrace to your .zshrc file. Antigen will handle cloning the plugin for you automatically the next time you start zsh. You can also add the plugin to a running zsh with antigen bundle z-shell/ztrace for testing before adding it to your .zshrc.
cd ~/.oh-my-zsh/custom/pluginsgit clone git@github.com:z-shell/ztrace.git- Add zsnapshot to your plugin list
Add zgenom load z-shell/ztrace to your .zshrc file in the same function you're doing your other zgen load calls in.
Below are keyboard shortcuts used by ztrace command:
Ctrl-T- start Zsh Command Architect (Zshell binding)Ctrl-E- switch between Ztrace and History viewsEnter- delete selected segment (when in command window) or add selected segment (when in history window)[or]- move active segment (when in command window)Shift-leftorShift-right- move active segment (when in command window)Tab- switch between the two available windowsg, G- beginning and end of the list/- start incremental searchEsc- exit incremental search, clearing filter<,>,{,}- horizontal scrollCtrl-L- redraw of whole displayCtrl-O,o- enter uniq mode (no duplicate lines)Ctrl-W(in incremental search) - delete whole wordCtrl-K(in incremental search) - delete whole lineCtrl-D,Ctrl-U- half page up or downCtrl-P,Ctrl-N- previous and next (also done with vim's j,k)