浏览代码

ng: fix shwordsplit option use (#7880)

Rachel M. Carmena 5 年之前
父节点
当前提交
5d875d6812
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      plugins/ng/ng.plugin.zsh

+ 1 - 4
plugins/ng/ng.plugin.zsh

@@ -1,4 +1,3 @@
-
 ng_opts='addon asset-sizes b build completion d destroy doc e2e g generate get github-pages:deploy gh-pages:deploy h help i init install lint make-this-awesome new s serve server set t test update v version -h --help'
 
 _ng_completion () {
@@ -73,9 +72,7 @@ _ng_completion () {
       ;;
   esac
 
-  setopt shwordsplit
-  reply=($opts)
-  unset shwordsplit
+  reply=(${=opts})
 }
 
 compctl -K _ng_completion ng