You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you source `zinit.zsh` after `compinit`, add the following snippet after sourcing `zinit.zsh`:
145
145
@@ -725,7 +725,7 @@ You may safely assume a given ice works with both plugins and snippets unless ex
725
725
|`if`| Load plugin or snippet only when given condition is fulfilled, for example: `zinit ice if'[[ -n "$commands[otool]" ]]'; zinit load ...`. |
726
726
|`load`| A condition to check which should cause plugin to load. It will load once, the condition can be still true, but will not trigger second load (unless plugin is unloaded earlier, see `unload` below). E.g.: `load'[[ $PWD = */github* ]]'`. |
727
727
|`subscribe` / `on-update-of`| Postpone loading of a plugin or snippet until the given file(s) get updated, e.g. `subscribe'{~/files-*,/tmp/files-*}'`|
728
-
|`trigger-load`| Creates a function that loads the associated plugin/snippet, with an option (to use it, precede the ice content with `!`) to automatically forward the call afterwards, to a command of the same name as the function. Can obtain multiple functions to create βΒ sparate with `;`. |
728
+
|`trigger-load`| Creates a function that loads the associated plugin/snippet, with an option (to use it, precede the ice content with `!`) to automatically forward the call afterwards, to a command of the same name as the function. Can obtain multiple functions to create βΒ separate with `;`. |
729
729
|`unload`| A condition to check causing plugin to unload. It will unload once, then only if loaded again. E.g.: `unload'[[ $PWD != */github* ]]'`. |
730
730
|`wait`| Postpone loading a plugin or snippet. For `wait'1'`, loading is done `1` second after prompt. For `wait'[[ ... ]]'`, `wait'(( ... ))'`, loading is done when given condition is meet. For `wait'!...'`, prompt is reset after load. Zsh can start 80% (i.e.: 5x) faster thanks to postponed loading. **Fact:** when `wait` is used without value, it works as `wait'0'`. |
731
731
@@ -780,7 +780,7 @@ You may safely assume a given ice works with both plugins and snippets unless ex
780
780
|`id-as`| Nickname a plugin or snippet, to e.g. create a short handler for long-url snippet. |
781
781
|`subst`| Substitute the given string into another string when sourcing the plugin script, e.g.: `zinit subst'autoload β autoload -Uz' β¦`. |
782
782
|`aliases`| Load the plugin with the aliases mechanism enabled. Use with plugins that define **and use** aliases in their scripts. |
783
-
|`autoload`| Autoload the given functions (from their files). Equvalent to calling `atinit'autoload the-function'`. Supports renaming of the function β pass `'β¦ β new-name'` or `'β¦ -> new-name'`, e.g.: `zinit autoload'fun β my-fun; fun2 β my-fun2'`. |
783
+
|`autoload`| Autoload the given functions (from their files). Equivalent to calling `atinit'autoload the-function'`. Supports renaming of the function β pass `'β¦ β new-name'` or `'β¦ -> new-name'`, e.g.: `zinit autoload'fun β my-fun; fun2 β my-fun2'`. |
784
784
|`bindmap`| To hold `;`-separated strings like `Key(s)A -> Key(s)B`, e.g. `^R -> ^T; ^A -> ^B`. In general, `bindmap''`changes bindings (done with the `bindkey` builtin) the plugin does. The example would cause the plugin to map Ctrl-T instead of Ctrl-R, and Ctrl-B instead of Ctrl-A. **Does not work with snippets.**|
785
785
|`compile`| Pattern (+ possible `{...}` expansion, like `{a/*,b*}`) to select additional files to compile, e.g. `compile'*.zsh'`. |
786
786
|`extract`| Performs archive extraction supporting multiple formats like `zip`, `tar.gz`, etc. and also notably OS X `dmg` images. If it has no value, then it works in the _auto_ mode β it automatically extracts all files of known archive extensions IF they aren't located deeper than in a sub-directory (this is to prevent extraction of some helper archive files, typically located somewhere deeper in the tree). If no such files will be found, then it extracts all found files of known **type** β the type is being read by the `file` Unix command. If not empty, then takes names of the files to extract. Refer to the Wiki page for further information. |
@@ -941,7 +941,7 @@ log of the new commits pulled-in in the last update.
941
941
With no Turbo mode in use, compinit can be called normally, i.e.: as `autoload compinit; compinit`. This should be done
942
942
after loading of all plugins and before possibly calling `zinit cdreplay`.
943
943
944
-
The `cdreplay` subcommand is provided to re-play all catched`compdef` calls. The `compdef` calls are used to define a
944
+
The `cdreplay` subcommand is provided to re-play all caught`compdef` calls. The `compdef` calls are used to define a
945
945
completion for a command. For example, `compdef _git git` defines that the `git` command should be completed by a `_git`
0 commit comments