Skip to content

zi list-snippets

List all snippets managed by Zinit in a formatted, colorized tree view. Requires the tree program to be installed.

Terminal window
zi list-snippets

No arguments.

Displays the contents of $ZINIT[SNIPPETS_DIR] using the tree utility (or the command set in $ZINIT[LIST_COMMAND]). Each snippet is shown with its cached file structure. If tree is not installed, the command will fail with an error about the missing program.

Terminal window
zi list-snippets

Requires tree or a compatible directory-listing tool. On macOS, install via brew install tree. The $ZINIT[LIST_COMMAND] hash field can override which command is used.

  • cmd-list-plugins
  • cmd-recently
  • cmd-snippet