mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 15:20:08 +00:00
add task description to fabric completion
This commit is contained in:
parent
1b7fc2f3ac
commit
9dd76fb6bc
1 changed files with 4 additions and 1 deletions
|
@ -5,7 +5,10 @@ local curcontext=$curcontext state line
|
||||||
declare -A opt_args
|
declare -A opt_args
|
||||||
|
|
||||||
declare target_list
|
declare target_list
|
||||||
target_list=(`fab --shortlist 2>/dev/null`)
|
IFS="$(printf '\n+')" target_list=($(fab -l | awk '{
|
||||||
|
if(NR > 2)
|
||||||
|
printf "%s:%s\n", $1, substr($0, index($0, $2))
|
||||||
|
}' 2>/dev/null))
|
||||||
|
|
||||||
_targets() {
|
_targets() {
|
||||||
_describe -t commands "fabric targets" target_list
|
_describe -t commands "fabric targets" target_list
|
||||||
|
|
Loading…
Reference in a new issue