6b8b6253d229357ebb759ea2f96dec30633acc6f

Author
TIT <sblohin@yandex.ru>
Committer
GitHub <noreply@github.com>
Date

Message

fix(jake-node): support all Jakefile filenames in `jake` completion (#9589)

Diff

 1diff --git a/plugins/jake-node/jake-node.plugin.zsh b/plugins/jake-node/jake-node.plugin.zsh
 2index 3b692f899bdbb79eaa70a7b50588d6ea615f699c..c2dad28af556de5ef21c010ef06144cc731423d5 100644
 3--- a/plugins/jake-node/jake-node.plugin.zsh
 4+++ b/plugins/jake-node/jake-node.plugin.zsh
 5@@ -6,7 +6,7 @@
 6 # Inspiration : https://weblog.rubyonrails.org/2006/3/9/fast-rake-task-completion-for-zsh
 7 
 8 function _jake () {
 9-  if [ -f Jakefile ]||[ -f jakefile ]; then
10+  if [ -f Jakefile ] || [ -f jakefile ] || [ -f Jakefile.js ] || [ -f jakefile.js ]; then
11     compadd `jake -T | cut -d " " -f 2 | sed -E "s/.\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"`
12   fi
13 }