Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
9dd76fb6
Commit
9dd76fb6
authored
Sep 23, 2016
by
spacewander
Browse files
add task description to fabric completion
parent
1b7fc2f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/fabric/_fab
View file @
9dd76fb6
...
@@ -5,7 +5,10 @@ local curcontext=$curcontext state line
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment