From c53edf00dae332a12a336e2fddd9f63ea5864b89 Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Thu, 1 Mar 2018 16:39:04 +0100 Subject: [PATCH] Installation.md: Zsh-plugin method which doesn't require root access --- Installation.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Installation.md b/Installation.md index 3d6e31b..31bdea4 100644 --- a/Installation.md +++ b/Installation.md @@ -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.