Add --work-tree flag to work in .zprezto git repo

This commit is contained in:
Christian Bundy 2014-10-14 16:41:39 -07:00
parent 47d5e0e714
commit 9d4df00e52

View file

@ -44,8 +44,8 @@ Updating
Pull the latest changes and update submodules.
git --git-dir "${ZDOTDIR:-$HOME}/.zprezto/.git" pull
git --git-dir "${ZDOTDIR:-$HOME}/.zprezto/.git" submodule update --init --recursive
git --git-dir "${ZDOTDIR:-$HOME}/.zprezto/.git" --work-tree="${ZDOTDIR:-$HOME}/.zprezto" pull
git --git-dir "${ZDOTDIR:-$HOME}/.zprezto/.git" --work-tree="${ZDOTDIR:-$HOME}/.zprezto" submodule update --init --recursive
Usage
-----