简体   繁体   中英

/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:

在此处输入图片说明

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?

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}" .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM