zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.73k stars 122 forks source link

fix: variable scope in delete command #612

Closed vladdoster closed 6 months ago

vladdoster commented 6 months ago

Description

zinit from'gh-r' for \
  sbin'fx*->fx'  @antonmedv/fx \
  sbin'bat->bat' @sharkdp/bat  \
  sbin'fd->fd'   @sharkdp/fd   \
  sbin'fogg'     @chanzuckerberg/fogg \
  sbin'gh->new-gh' @cli/cli \
  sbin'hugo->sbin_hugo' @gohugoio/hugo

Fixes issue in delete command causing incorrect values to be used when using for syntax.

before

Screenshot 2023-12-24 at 08 13 22

after

Screenshot 2023-12-24 at 08 16 10

Related Issue(s)

Closes zdharma-continuum/zinit-annex-bin-gem-node/issues/13

Motivation and Context

Usage examples

zinit from'gh-r' for \
  sbin'fx*->fx'  @antonmedv/fx \
  sbin'bat->bat' @sharkdp/bat  \
  sbin'fd->fd'   @sharkdp/fd   \
  sbin'fogg'     @chanzuckerberg/fogg \
  sbin'gh->new-gh' @cli/cli \
  sbin'hugo->sbin_hugo' @gohugoio/hugo

zi delete \
  antonmedv/fx \
  gohugoio/hugo \
  sharkdp/fd \
  sharkdp/bat \
  chanzuckerberg/fogg \
  cli/cli

How Has This Been Tested?

Types of changes

Checklist: