diff --git a/tests/gh-r.zunit b/tests/gh-r.zunit index 262b32d5a..164a3566b 100755 --- a/tests/gh-r.zunit +++ b/tests/gh-r.zunit @@ -593,14 +593,19 @@ local navi="$ZPFX/bin/navi" && assert "$navi" is_executable $navi --version && assert $state equals 0 } -@test 'neovim' { - run zinit sbin'**/nvim' for neovim/neovim - assert $state equals 0 +@test 'neovim::binary' { + run zinit sbin'**/nvim' id-as'neovim/binary' for neovim/neovim + assert $state equals 0; assert $output does_not_contain 'appimage' local nvim="$ZPFX/bin/nvim" assert "$nvim" is_executable $nvim --version assert $state equals 0 } +@test 'neovim::appimage' { + run zinit bpick'*appimage*' id-as'neovim/appimage' for neovim/neovim + assert $state equals 0; assert $output does_not_contain 'appimage.' + assert "$ZINIT[PLUGINS_DIR]/neovim---appimage/nvim.appimage" is_file +} @test 'onefetch' { run zinit sbin'**/onefetch' for o2sh/onefetch; assert $state equals 0 local onefetch="$ZPFX/bin/onefetch"; assert "$onefetch" is_executable diff --git a/zinit-install.zsh b/zinit-install.zsh index e87c344e4..0af15d913 100644 --- a/zinit-install.zsh +++ b/zinit-install.zsh @@ -1477,7 +1477,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { list=( ${(M)list[@]:#(#i)*/$~bpick} ) } - list=( ${list[@]:#*(a(ccoutrements|ppimage)|s(ha256sum|ig)|manifest|sh|(sha1|md5)sums|sha256|md5|pkg|txt)(#e)} ) + list=( ${list[@]:#*(a(ccoutrements|ppimage.[a-z]*)|s(ha256sum|ig)|manifest|.sh|(sha1|md5)sums|sha256|md5|pkg|txt)(#e)} ) # filter .deb packages if dpkg-deb present if (( $#list < 1 && ${+commands[dpkg-deb]} == 1 )) {