Git Plugin for Oh-My-ZSH, corrupted after updating Git

I used the system version of git and then updated it to the latest version using homebrew. After that, all the git hotkeys provided by the oh-my-zsh git plugin stopped working. I tried reinstalling oh-my-zsh but don't know what else to do.

The only thing that I changed is that I recently installed a hub, but I have not reminded it yet.

+6
source share
2 answers

From the comments, the oh-my-zsh plugin containing git aliases is not used.

To fix this, you can:

  • Send the plugin directly by adding source ~/.oh-my-zsh/plugins/git/git.plugin.zsh to ~/.zshrc ,
  • Enable the plugin in the canonical way: by adding git to the plugins=(...) in ~/.zshrc : plugins=(git osx ruby) . Note: I understand that if you have two lines with plugins=() , the second will overwrite the first - I think (unchecked) that plugins=($plugins git) allows you to include plugins on several lines.
+25
source

To download zsh plugins, the default format specified in .zshrc is used: plugins=(rails git textmate ruby lighthouse) . For some reason, it was written in this format plugins=(git, lighthouse) , separated by commas. Separating only the space and the .zshrc source after saving solved the problem.

0
source

Source: https://habr.com/ru/post/1487366/


All Articles