mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: broken symbolic link after creinstall .
Signed-off-by: Miles Liu <miles@bung.cc>
This commit is contained in:
parent
f214ebe485
commit
da0d6b712c
|
|
@ -37,6 +37,12 @@
|
|||
local vim="$ZBIN/vim"; assert $vim is_executable
|
||||
$vim --version; assert $state equals 0
|
||||
}
|
||||
@test 'zsh-completions' {
|
||||
run zinit light-mode for zsh-users/zsh-completions
|
||||
zinit cd zsh-users/zsh-completions
|
||||
run zinit creinstall -q .; assert $state equals 0
|
||||
local broken_completions=($(echo "$ZINIT[COMPLETIONS_DIR]"/*(-@))); assert "${#broken_completions[@]}" equals 0
|
||||
}
|
||||
# @test 'zsh_bin' {
|
||||
# run zinit as'null' sbin'bin/zsh' for @romkatv/zsh-bin
|
||||
# assert $state equals 0
|
||||
|
|
|
|||
|
|
@ -563,7 +563,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || {
|
|||
# Symlink completions if they are not already there
|
||||
# either as completions (_fname) or as backups (fname)
|
||||
# OR - if its a reinstall
|
||||
for c in "${completions[@]}"; do
|
||||
for c in "${completions[@]:A}"; do
|
||||
cfile="${c:t}"
|
||||
bkpfile="${cfile#_}"
|
||||
if [[ ( -z ${already_symlinked[(r)*/$cfile]} || $reinstall = 1 ) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue