File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,18 @@ curl -sSL https://git.io/git-extras-setup | sudo bash /dev/stdin
158158
159159## Installing as Zsh plugin
160160
161- [ Zplugin] ( https://github.com/zdharma/zplugin ) can install git-extras by using:
162-
161+ [ ZInit] ( https://github.com/zdharma/zinit ) can install git-extras by using:
163162``` zsh
164- zplugin ice as" program" pick" $ZPFX /bin/git-*" src" etc/git-extras-completion.zsh" make" PREFIX=$ZPFX "
165- zplugin light tj/git-extras
163+ zinit ice as" program" pick" $ZPFX /bin/git-*" src" etc/git-extras-completion.zsh" make" PREFIX=$ZPFX "
164+ zinit light tj/git-extras
165+
166+ # or with the for syntax + async load
167+ zinit lucid wait' 0a' for \
168+ as" program" pick" $ZPFX /bin/git-*" src" etc/git-extras-completion.zsh" make" PREFIX=$ZPFX " tj/git-extras
169+
166170```
167171
168- ` $ZPFX ` is ` ~/.zplugin /polaris ` by default. Use ` zplugin update tj/git-extras` to update.
172+ ` $ZPFX ` is ` ~/.zinit /polaris ` by default. Use ` zinit update tj/git-extras` to update.
169173This method installs in ` $HOME ` , so you don't need to ask administrator to install package.
170174
171175## Updating
You can’t perform that action at this time.
0 commit comments