Search code examples
phpbashalfred

/bin/bash - Alfred 3 workflow does not detect php


So I downloaded this plugin https://github.com/vmitchell85/alfred-vuejs-docs and I got the Powerpack. Here is me trying to execute the workflow but pressing enter at this point does nothing:

enter image description here

After I press space and enter "vue events", I get in the debug:

[2018-09-02 16:56:33][ERROR: input.scriptfilter] Code 127: /bin/bash: php: command not found

Which is strange because I fire up my Terminal.app (Which uses bash) and I do php -v which gives me: PHP 7.2.8 (cli) (built: Jul 19 2018 12:15:24) ( NTS ). Same thing on my zsh profile.

What do I do?


Solution

  • Look at the image you posted. There's a Script Filter object on the Alfred Editor. You just have to double-click on it and replace php vuejs.php "{query}" with /usr/local/bin/php vuejs.php "{query}".