Skip to content

Commit

Permalink
Zinit: change BIN_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Nov 28, 2024
1 parent 118e1e9 commit 0ba3e46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .config/shell/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
plugins
zinit/
10 changes: 5 additions & 5 deletions .config/shell/zinit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ if [ "$NO_ZINIT" = '1' ]; then
fi

declare -A ZINIT
ZINIT[PLUGINS_DIR]="$SHELL_CONFIG_HOME/plugins"
ZINIT[HOME_DIR]="$SHELL_CONFIG_HOME/zinit"
ZINIT[BIN_DIR]="${ZINIT[HOME_DIR]}/zinit.git"
ZINIT[NO_ALIASES]=1

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"
[ ! -d "${ZINIT[BIN_DIR]}" ] && mkdir -p "$(dirname "${ZINIT[BIN_DIR]}")"
[ ! -d "${ZINIT[BIN_DIR]}/.git" ] && git clone https://github.com/zdharma-continuum/zinit.git "${ZINIT[BIN_DIR]}"
source "${ZINIT[BIN_DIR]}/zinit.zsh"

zinit snippet PZTM::directory

Expand Down

0 comments on commit 0ba3e46

Please sign in to comment.