Skip to content

Commit

Permalink
Update default install dir to XDG_DATA_HOME/zinit/zinit.git
Browse files Browse the repository at this point in the history
  • Loading branch information
pschmitt committed Nov 11, 2021
1 parent aa758fc commit 66b908e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

ZINIT_HOME="${ZINIT_HOME:-$ZPLG_HOME}"
if [ -z "$ZINIT_HOME" ]; then
ZINIT_HOME="${ZDOTDIR:-$HOME}/.zinit"
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit"
fi

ZINIT_BIN_DIR_NAME="${ZINIT_BIN_DIR_NAME:-$ZPLG_BIN_DIR_NAME}"
if [ -z "$ZINIT_BIN_DIR_NAME" ]; then
ZINIT_BIN_DIR_NAME="bin"
ZINIT_BIN_DIR_NAME="zinit.git"
fi

if ! test -d "$ZINIT_HOME"; then
Expand Down

0 comments on commit 66b908e

Please sign in to comment.