Skip to content

zi glance

Display a syntax-highlighted view of a plugin’s source file in the terminal, using pygmentize, source-highlight, or highlight if available.

Terminal window
zi glance {plg-spec}

Locates the plugin’s main file (using the same pick logic as load time) and pipes it through a syntax highlighter to render it in the terminal. Falls back gracefully if no highlighter is installed, in which case the raw source is displayed. Useful for quickly reviewing a plugin’s code without opening an editor.

Terminal window
zi glance zsh-users/zsh-autosuggestions
  • cmd-edit
  • cmd-cd
  • cmd-changes