Skip to content

Commit 9f37031

Browse files
authored
docs(README.md): fix typos
1 parent eb472d1 commit 9f37031

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
139139
source "${ZINIT_HOME}/zinit.zsh"
140140
```
141141

142-
[compinit](http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Initialization)):
142+
[compinit](http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Initialization):
143143

144144
If you source `zinit.zsh` after `compinit`, add the following snippet after sourcing `zinit.zsh`:
145145

@@ -725,7 +725,7 @@ You may safely assume a given ice works with both plugins and snippets unless ex
725725
| `if` | Load plugin or snippet only when given condition is fulfilled, for example: `zinit ice if'[[ -n "$commands[otool]" ]]'; zinit load ...`. |
726726
| `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* ]]'`. |
727727
| `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 `;`. |
729729
| `unload` | A condition to check causing plugin to unload. It will unload once, then only if loaded again. E.g.: `unload'[[ $PWD != */github* ]]'`. |
730730
| `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'`. |
731731

@@ -780,7 +780,7 @@ You may safely assume a given ice works with both plugins and snippets unless ex
780780
| `id-as` | Nickname a plugin or snippet, to e.g. create a short handler for long-url snippet. |
781781
| `subst` | Substitute the given string into another string when sourcing the plugin script, e.g.: `zinit subst'autoload β†’ autoload -Uz' …`. |
782782
| `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'`. |
784784
| `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.** |
785785
| `compile` | Pattern (+ possible `{...}` expansion, like `{a/*,b*}`) to select additional files to compile, e.g. `compile'*.zsh'`. |
786786
| `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.
941941
With no Turbo mode in use, compinit can be called normally, i.e.: as `autoload compinit; compinit`. This should be done
942942
after loading of all plugins and before possibly calling `zinit cdreplay`.
943943

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
945945
completion for a command. For example, `compdef _git git` defines that the `git` command should be completed by a `_git`
946946
function.
947947

0 commit comments

Comments
Β (0)