Skip to content

zi edit

Open a plugin’s main file in $EDITOR. A quick way to inspect or patch a plugin’s source without navigating to its directory manually.

Terminal window
zi edit {plg-spec}

Resolves the plugin’s directory, finds its main sourced file (following the same pick logic Zinit uses at load time), and opens it with the editor defined in the $EDITOR environment variable. If $EDITOR is unset, the behavior is system-dependent.

Terminal window
# Edit zsh-autosuggestions main file
zi edit zsh-users/zsh-autosuggestions
  • cmd-cd
  • cmd-glance
  • cmd-create