mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: modify regex in gh-r for assets to not consider for selection (#244)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
parent
4c5854b1cd
commit
6ef84398b2
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 )) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue