浏览代码

Fix gfg function completion definition

Related: #5179
Marc Cornellà 8 年之前
父节点
当前提交
c62442f999
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/git/git.plugin.zsh

+ 1 - 1
plugins/git/git.plugin.zsh

@@ -88,7 +88,7 @@ alias gdw='git diff --word-diff'
 alias gf='git fetch'
 alias gfa='git fetch --all --prune'
 function gfg() { git ls-files | grep $@ }
-compdef gfg=grep
+compdef _grep gfg
 alias gfo='git fetch origin'
 
 alias gg='git gui citool'