Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
9dd76fb6
Commit
9dd76fb6
authored
Sep 23, 2016
by
spacewander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add task description to fabric completion
parent
1b7fc2f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
_fab
plugins/fabric/_fab
+4
-1
No files found.
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