README: Installation as Zsh plugin

This commit is contained in:
Sebastian Gniazdowski 2018-03-01 20:15:21 +01:00
parent ee22ce0334
commit 8cf31bec24

View file

@ -73,6 +73,21 @@ where git-now will be installed, simply specify it explicitly, using:
Or simply point your `PATH` environment variable to your git-now checkout
directory.
### Installation as Zsh plugin
[Zplugin](https://github.com/zdharma/zplugin) provides directory
`~/.zplugin/polaris` (via `$ZPFX`) as the `PREFIX` for plugins that have
`Makefile` with `install` target. Adding following to `.zshrc` installs
git-now:
```zsh
zplugin ice as"program" pick"$ZPFX/bin/git-now" make"prefix=$ZPFX install"
zplugin light iwata/git-now
```
Use `zplugin update iwata/git-now` to automatically update and reinstall.
This method allows to install and update without administrator rights.
Also, copying `.zshrc` to other machine/account brings git-now there.
See also
---------------