ohmyzsh/plugins/git
Maxime Fabre e3d8d7bebe Add submodule helpers to Git plugin
From #1116

Modified: compdef needs _git entry point
Modifier: ncanceill <https://github.com/ncanceill>

Original commit:
Author :     Maxime Fabre <ehtnam6@gmail.com>

diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 6e6ba05..53046de 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -161,4 +161,10 @@ alias gunignore='git update-index --no-assume-unchanged'
 alias gignored='git ls-files -v | grep "^[[:lower:]]"'

-
+# Submodules
+alias gf='git fetch'
+compdef _git gf=git-fetch
+alias gsi='git submodule init'
+compdef gsi=git-submodule
+alias gsu='git submodule update'
+compdef gsu=git-submodule
2014-05-07 16:27:42 +02:00
..
_git-branch Copy and paste of two functions from Ubuntu 13.04's version of /usr/share/zsh/functions/Completion/Unix/_git that were referenced in 46f0d8d. Fixes #1952. 2013-07-09 23:15:43 -05:00
_git-remote Improvement in the git plugin 2013-06-05 15:16:51 +02:00
git.plugin.zsh Add submodule helpers to Git plugin 2014-05-07 16:27:42 +02:00
README.md Improvement in the git plugin 2013-06-05 15:16:51 +02:00

git

Maintainer: Stibbons

This plugin adds several git aliases and increase the completion function provided by zsh