Skip to content

Commit

Permalink
fix: modify regex in gh-r for assets to not consider for selection
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <[email protected]>
  • Loading branch information
vladdoster committed May 2, 2022
1 parent 4c5854b commit f1f94e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions tests/gh-r.zunit
Original file line number Diff line number Diff line change
Expand Up @@ -593,14 +593,22 @@
local navi="$ZPFX/bin/navi" && assert "$navi" is_executable
$navi --version && assert $state equals 0
}
@test 'neovim' {
run zinit sbin'**/nvim' for neovim/neovim
@test 'neovim::binary' {
run zinit sbin'**/nvim' id-as'neovim/binary' for neovim/neovim
assert $state equals 0
local nvim="$ZPFX/bin/nvim"
assert "$nvim" is_executable
$nvim --version
assert $state equals 0
}
@test 'neovim::appimage' {
[[ $OSTYPE =~ 'darwin.*' ]] && skip 'Neovim Appimage only ran on Linux/GNU'
run zinit bpick'appimage' id-as'neovim/appimage' for neovim/neovim
# local nvim="$ZPFX/bin/nvim"
# assert "$nvim" is_executable
# $nvim --version
assert $state equals 0
}
@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.)|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 f1f94e0

Please sign in to comment.