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
6b8b6253
Unverified
Commit
6b8b6253
authored
Jan 11, 2021
by
TIT
Committed by
GitHub
Jan 11, 2021
Browse files
fix(jake-node): support all Jakefile filenames in `jake` completion (#9589)
parent
3d51d630
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/jake-node/jake-node.plugin.zsh
View file @
6b8b6253
...
...
@@ -6,7 +6,7 @@
# Inspiration : https://weblog.rubyonrails.org/2006/3/9/fast-rake-task-completion-for-zsh
function
_jake
()
{
if
[
-f
Jakefile
]||[
-f
jakefile
]
;
then
if
[
-f
Jakefile
]
||
[
-f
jakefile
]
||
[
-f
Jakefile.js
]
||
[
-f
jakefile.js
]
;
then
compadd
`
jake
-T
|
cut
-d
" "
-f
2 |
sed
-E
"s/.
\[
([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
`
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