diff --git a/.gitmodules b/.gitmodules index 70ea41ad0..e69de29bb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "common/.local/share/zsh/zinit/zinit.git"] - path = common/.local/share/zsh/zinit/zinit.git - url = https://github.com/zdharma-continuum/zinit/ diff --git a/common/.config/zsh/config/plugins.zsh b/common/.config/zsh/config/plugins.zsh index 862428bfe..496624298 100644 --- a/common/.config/zsh/config/plugins.zsh +++ b/common/.config/zsh/config/plugins.zsh @@ -7,6 +7,8 @@ ZINIT[SNIPPETS_DIR]=$ZINIT[HOME_DIR]/snippets ZINIT[ZCOMPDUMP_PATH]=$ZINIT[HOME_DIR]/zcompdump ZINIT[PLUGINS_DIR]=$ZINIT[HOME_DIR]/plugins +[ ! -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" function turbo() { diff --git a/common/.local/share/zsh/zinit/zinit.git b/common/.local/share/zsh/zinit/zinit.git deleted file mode 160000 index c34694964..000000000 --- a/common/.local/share/zsh/zinit/zinit.git +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c3469496455ea8b8ba184426c558e54817825bef