Skip to content

Commit

Permalink
Zinit: XDG_DATA_HOME should always be available
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Nov 27, 2024
1 parent 145b084 commit 9d3cd77
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:-${HOME}/.local/share}/zinit/zinit.git"
ZINIT_HOME="$XDG_DATA_HOME/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 9d3cd77

Please sign in to comment.