Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Plugin for Oh-My-ZSH broken after Updating Git

Tags:

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

The only other thing I've changed is that I recently installed hub but I have not aliased it yet.

like image 248
bsiddiqui Avatar asked Jun 20 '13 20:06

bsiddiqui


1 Answers

From the comments, the oh-my-zsh plugin containing the git aliases isn't being sourced.

To do fix this, you can either:

  1. Directly source the plugin by adding source ~/.oh-my-zsh/plugins/git/git.plugin.zsh to your ~/.zshrc,
  2. Enable the plugin the canonical way: by adding git to the plugins=(...) line in ~/.zshrc: plugins=(git osx ruby). Note: my understanding is that, if you have two lines with plugins=(), the second will overwrite the first - I think (untested) that plugins=($plugins git) allows for enabling of plugins over multiple lines.
like image 181
simont Avatar answered Oct 23 '22 05:10

simont