浏览代码

Fix get command list for recent composer versions

Julien Pepy 10 年之前
父节点
当前提交
0cc3afe277
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/composer/composer.plugin.zsh

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

@@ -7,7 +7,7 @@
 
 # Composer basic command completion
 _composer_get_command_list () {
-	composer --no-ansi | sed "1,/Available commands/d" | awk '/^  [a-z]+/ { print $1 }'
+	composer --no-ansi | sed "1,/Available commands/d" | awk '/^\s*[a-z]+/ { print $1 }'
 }
 
 _composer_get_required_list () {