mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Installation.md: Zsh-plugin method which doesn't require root access
This commit is contained in:
parent
ebf7903d0e
commit
c53edf00da
|
|
@ -112,6 +112,18 @@ One-liner:
|
|||
curl -sSL http://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:
|
||||
|
||||
```zsh
|
||||
zplugin ice as"program" pick"$ZPFX/bin/git-*" make"PREFIX=$ZPFX"
|
||||
zplugin light tj/git-extras
|
||||
```
|
||||
|
||||
`$ZPFX` is `~/.zplugin/polaris` by default. Use `zplugin update tj/git-extras` to update.
|
||||
This method installs in `$HOME`, so you don't need to ask administrator to install package.
|
||||
|
||||
## Updating
|
||||
|
||||
If you installed git-extras with a package manager, use that package manager's tools to update it.
|
||||
|
|
|
|||
Loading…
Reference in a new issue