zdharma-continuum / zinit

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

fix: self-update check for updates #562

Closed vladdoster closed 10 months ago

vladdoster commented 11 months ago

Motivation and Context

Match Homebrew's behavior

~/.local/share/zinit/zinit.git main*
MDN-X5J9PHV9NQ ᐳ brew update
Already up-to-date.

Usage examples

Current behavior

~/.local/share/zinit/zinit.git main
MDN-X5J9PHV9NQ ᐳ zi self-update
[self-update] fetching latest changes from main branch
Already up to date.
[self-update] compiling zinit via zcompile
[self-update] reloading zinit for the current session

New Behavior

~/.local/share/zinit/zinit.git main*
MDN-X5J9PHV9NQ ᐳ zi self-update
Already up-to-date.

How Has This Been Tested?

Types of changes

Checklist:

vladdoster commented 10 months ago

@pschmitt,

This is the first applicable use of this function, but can be used in a few more places to improve logic.

vladdoster commented 10 months ago

@pschmitt,

This PR is ready for review.

github-actions[bot] commented 10 months ago

:tada: This PR is included in version 3.12.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: