mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
Add conditional directory and git cloning calls to setup instructions
Without this, you'll get an error on each terminal startup.
This commit is contained in:
parent
515688bc97
commit
5e1c79cb22
|
|
@ -133,8 +133,8 @@ ### Manual<a name="manual"></a>
|
|||
|
||||
```zsh
|
||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||
mkdir -p "$(dirname $ZINIT_HOME)"
|
||||
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
|
||||
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||
source "${ZINIT_HOME}/zinit.zsh"
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue