Skip to content

Commit

Permalink
fix: modify regex in gh-r for assets to not consider for selection (z…
Browse files Browse the repository at this point in the history
…dharma-continuum#244)

Signed-off-by: Vladislav Doster <[email protected]>
  • Loading branch information
vladdoster authored May 2, 2022
1 parent 4c5854b commit 6ef8439
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions tests/gh-r.zunit
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion zinit-install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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 )) {
Expand Down

0 comments on commit 6ef8439

Please sign in to comment.