Browse Source

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

TIT 3 years ago
parent
commit
6b8b6253d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/jake-node/jake-node.plugin.zsh

+ 1 - 1
plugins/jake-node/jake-node.plugin.zsh

@@ -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
 }