Skip to content

Commit

Permalink
use php from the user’s path (#22)
Browse files Browse the repository at this point in the history
* use php from the user’s path

Possible fix for #20

* test various php paths

Possible solution to #20

* use {query}

Seehttps://github.com//pull/22#pullrequestreview-800530199 and following
  • Loading branch information
macbookandrew authored Nov 12, 2021
1 parent 60d9f4d commit c294c7f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,15 @@
<key>runningsubtext</key>
<string>Searching docs for "{query}"...</string>
<key>script</key>
<string>/opt/homebrew/bin/php laravel.php "$1"</string>
<string>if [ -f "/opt/homebrew/bin/php" ]; then
/opt/homebrew/bin/php laravel.php "{query}"
elif [ -f "/usr/local/bin/php" ]; then
/usr/local/bin/php laravel.php "{query}"
elif [ -f "/usr/bin/php" ]; then
/usr/bin/php laravel.php "{query}"
fi</string>
<key>scriptargtype</key>
<integer>1</integer>
<integer>0</integer>
<key>scriptfile</key>
<string></string>
<key>subtext</key>
Expand Down

0 comments on commit c294c7f

Please sign in to comment.