Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update zplugin docs --> zinit #907

Merged
merged 1 commit into from
Mar 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update zinit docs
bbenzikry committed Mar 1, 2021

Verified

This commit was signed with the committer’s verified signature.
bbenzikry Beni Ben zikry
commit b7841ad3aa3b76c46b0f6db2651ab6242348738d
14 changes: 9 additions & 5 deletions Installation.md
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

## Installing as Zsh plugin

[Zplugin](https://github.com/zdharma/zplugin) can install git-extras by using:

[ZInit](https://github.com/zdharma/zinit) can install git-extras by using:
```zsh
zplugin ice as"program" pick"$ZPFX/bin/git-*" src"etc/git-extras-completion.zsh" make"PREFIX=$ZPFX"
zplugin light tj/git-extras
zinit ice as"program" pick"$ZPFX/bin/git-*" src"etc/git-extras-completion.zsh" make"PREFIX=$ZPFX"
zinit light tj/git-extras

# or with the for syntax + async load
zinit lucid wait'0a' for \
as"program" pick"$ZPFX/bin/git-*" src"etc/git-extras-completion.zsh" make"PREFIX=$ZPFX" tj/git-extras

```

`$ZPFX` is `~/.zplugin/polaris` by default. Use `zplugin update tj/git-extras` to update.
`$ZPFX` is `~/.zinit/polaris` by default. Use `zinit update tj/git-extras` to update.
This method installs in `$HOME`, so you don't need to ask administrator to install package.

## Updating