Skip to content

Commit

Permalink
Revert "Zinit: XDG_DATA_HOME should always be available"
Browse files Browse the repository at this point in the history
This reverts commit 9d3cd77.
  • Loading branch information
ken-matsui committed Nov 27, 2024
1 parent 9d3cd77 commit 3b5f1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .config/shell/zinit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare -A ZINIT
ZINIT[PLUGINS_DIR]="$SHELL_CONFIG_HOME/plugins"
ZINIT[NO_ALIASES]=1

ZINIT_HOME="$XDG_DATA_HOME/zinit/zinit.git"
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
[ ! -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"
Expand Down

0 comments on commit 3b5f1a1

Please sign in to comment.