浏览代码

Fix for ant targets with leading dash

As suggested in https://github.com/robbyrussell/oh-my-zsh/pull/3329#issuecomment-72062236
Chris Peterson 9 年之前
父节点
当前提交
349493a0b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/ant/ant.plugin.zsh

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

@@ -9,7 +9,7 @@ _ant () {
     if _ant_does_target_list_need_generating; then
     	ant -p | awk -F " " 'NR > 5 { print lastTarget }{lastTarget = $1}' > .ant_targets
     fi
-    compadd `cat .ant_targets`
+    compadd -- `cat .ant_targets`
   fi
 }