浏览代码

Using compctl instead of compdef to resolve Issue #1

Robby Russell 15 年之前
父节点
当前提交
2759586aae
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      rake_completion.zsh

+ 2 - 2
rake_completion.zsh

@@ -17,7 +17,7 @@ _rake () {
   fi
 }
 
-compdef _rake rake
+compctl -K _rake rake
 
 function _cap_does_task_list_need_generating () {
   if [ ! -f .cap_tasks~ ]; then return 0;
@@ -39,4 +39,4 @@ function _cap () {
   fi
 }
 
-compdef _cap cap
+compctl -K _cap cap