Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
327ac697
Unverified
Commit
327ac697
authored
Jul 09, 2020
by
Veit Lehmann
Committed by
GitHub
Jul 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mix-fast: add decriptions to mix-fast completions (#8561)
* feat(mix-fast): include desctiptions (#8561) * feat(mix-fast): improve _mix_generate (no tail, better matching)
parent
1db79f97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mix-fast.plugin.zsh
plugins/mix-fast/mix-fast.plugin.zsh
+3
-2
No files found.
plugins/mix-fast/mix-fast.plugin.zsh
View file @
327ac697
...
...
@@ -12,7 +12,7 @@ _mix_does_task_list_need_generating () {
}
_mix_generate
()
{
mix
help
|
grep
-v
'iex -S'
|
tail
-n
+2 |
cut
-d
" "
-f
2
>
.mix_tasks
mix
help
|
grep
'^mix [^ ]'
|
sed
-E
"s/mix ([^ ]*) *# (.*)/
\1
:
\2
/"
>
.mix_tasks
}
_mix
()
{
...
...
@@ -21,7 +21,8 @@ _mix () {
echo
"
\n
Generating .mix_tasks..."
>
/dev/stderr
_mix_generate
fi
compadd
`
cat
.mix_tasks
`
local
tasks
=(
${
(f)
"
$(
cat
.mix_tasks
)
"
}
)
_describe
'tasks'
tasks
fi
}
...
...
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