浏览代码

fabric: support fabric 2+ completion (#8010)

Kirill Pinchuk 5 年之前
父节点
当前提交
1908f7bddc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/fabric/_fab

+ 1 - 1
plugins/fabric/_fab

@@ -5,7 +5,7 @@ local curcontext=$curcontext state line
 declare -A opt_args
 
 declare target_list
-target_list=(`fab --shortlist 2>/dev/null`)
+target_list=(`fab --shortlist 2>/dev/null || fab --complete 2>/dev/null`)
 
 _targets() {
     _describe -t commands "fabric targets" target_list