zi run
Summary
Section titled “Summary”Run an arbitrary shell command inside a plugin’s directory. Useful for executing plugin-provided scripts or tools without changing your current directory.
Syntax / Usage
Section titled “Syntax / Usage”zi run [-l] [plugin] {command}-l— reuse the previous plugin (skip specifyingpluginagain).plugin— the plugin spec whose directory should be used as the working directory. Omit when using-l.{command}— the shell command to execute.
Details
Section titled “Details”Changes into the specified plugin’s directory for the duration of the command, then returns. When -l is given, the last plugin directory used in a run call is reused, allowing multiple commands to be run in the same plugin directory without repeating the spec.
Examples
Section titled “Examples”# Run make in a plugin's directoryzi run tj/git-extras make install
# Run a command and then another in the same directoryzi run some-user/some-plugin ./build.shzi run -l ./test.shSee Also
Section titled “See Also”- cmd-cd
- cmd-load