Skip to content

cloneopts

cloneopts'' passes arbitrary flags directly to git clone. The default is --recursive; supplying this ice replaces that default entirely.

Terminal window
zi ice cloneopts"--depth 1 --single-branch"
zi ice cloneopts"" # empty string: disables --recursive (no extra clone flags)

The contents of cloneopts'' replace the default --recursive flag passed to git clone. To disable recursive cloning without adding other flags, pass an empty value.

Does not work with snippets.

Terminal window
# Shallow clone without submodules
zi ice cloneopts"--depth 1"
zi light some/large-plugin
# Disable recursive submodule cloning
zi ice cloneopts""
zi light some/plugin-with-submodules-you-dont-want
  • depth
  • proto