Skip to content

zi cd

Change the current directory to a plugin’s local directory. Also supports snippets when given their URL.

Terminal window
zi cd {plg-spec}
zi cd {URL}

Resolves the plugin spec to its directory under $ZINIT[PLUGINS_DIR] (or the snippet cache path for URLs) and cds into it. This is a convenience shortcut for navigating directly to a managed plugin’s source without needing to know the full path. For _local plugins, the _local/ prefix is optional.

Terminal window
# cd into a GitHub plugin directory
zi cd zsh-users/zsh-autosuggestions
# cd into a local plugin (both forms work)
zi cd _local/my-helpers
zi cd my-helpers
  • cmd-edit
  • cmd-create
  • cmd-glance
  • cmd-changes