1908f7bddcacdfb18a5a4b1c883f0c405d1660a8
- Author
- Kirill Pinchuk <cybergrind@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
fabric: support fabric 2+ completion (#8010)
Diff
1diff --git a/plugins/fabric/_fab b/plugins/fabric/_fab
2index 9628e122474052baec84ebae2bc91d11387e3f10..4c2e61306929242af220383a019e5fec43882636 100644
3--- a/plugins/fabric/_fab
4+++ b/plugins/fabric/_fab
5@@ -5,7 +5,7 @@ local curcontext=$curcontext state line
6 declare -A opt_args
7
8 declare target_list
9-target_list=(`fab --shortlist 2>/dev/null`)
10+target_list=(`fab --shortlist 2>/dev/null || fab --complete 2>/dev/null`)
11
12 _targets() {
13 _describe -t commands "fabric targets" target_list