zsh-snap icon indicating copy to clipboard operation
zsh-snap copied to clipboard

Ability to specify git commit hash when installing plugins using zsh-snap

Open mehanoid opened this issue 1 year ago • 0 comments

What do you want?

I want to be able to specify a particular git commit of a plugin to install using zsh-snap.

Why do you want this?

Sometimes a plugin update can introduce a bug or a breaking change that could affect my workflow. In such cases, I would like to be able to specify a specific version (a git commit) of the plugin to install.

Who else would benefit from this?

All users of zsh-snap who want to control which version of a plugin to install would benefit from this feature.

How should it work?

Given this situation:

  • A user has a plugin list in their zshrc file, and they want to specify a particular git commit of a plugin to install.

When I perform these steps:

  1. In the zshrc file, the user specifies a plugin with a specific commit hash instead of just the plugin name or URL.
  2. The zsh-snap plugin manager uses the commit hash specified in the zshrc file to download and install the specified version of the plugin.

Then I expect this to happen:

  • zsh-snap installs the plugin with the commit hash specified in the zshrc file, instead of always installing the latest version.

mehanoid avatar Apr 26 '23 21:04 mehanoid