zinit
zinit copied to clipboard
[bug]: missing omz git plugin command
What happened?
When I've added the oh-my-zsh git plugin as a snippet most of the commands work, but gpsup fails with following error:
zsh: command not found: git_current_branch
I've initiated the plugin as following:
zinit snippet OMZP::git/git.plugin.zsh
Steps to reproduce
- Enable git plugin in
.zshrc - Create a new branch in any repo and try to push it to the origin with
gpsup - See the error
Relevant output
zsh: command not found: git_current_branch
fatal: The current branch sample-branch has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin sample-branch
To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.
Screenshots and recordings
No response
Operating System & Version
OS: darwin23.0 | Vendor: apple | Machine: x86_64 | CPU: arm64 | Processor: arm | Hardware: arm64
Zsh version
zsh 5.9 (x86_64-apple-darwin23.0)
Terminal emulator
xterm-256color
If using WSL on Windows, which version of WSL
None
Additional context
No response
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
see #504