Skip to content

Commit 5ed7189

Browse files
committed
Update info.plist to check for PHP path
1 parent 24e9736 commit 5ed7189

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

info.plist

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,13 @@
105105
<key>runningsubtext</key>
106106
<string>Searching docs for "{query}"...</string>
107107
<key>script</key>
108-
<string>php tailwindcss.php "{query}"</string>
108+
<string>if [ -f "/opt/homebrew/bin/php" ]; then
109+
/opt/homebrew/bin/php tailwindcss.php "{query}"
110+
elif [ -f "/usr/local/bin/php" ]; then
111+
/usr/local/bin/php tailwindcss.php "{query}"
112+
elif [ -f "/usr/bin/php" ]; then
113+
/usr/bin/php tailwindcss.php "{query}"
114+
fi</string>
109115
<key>scriptargtype</key>
110116
<integer>0</integer>
111117
<key>scriptfile</key>
@@ -173,7 +179,13 @@
173179
<key>runningsubtext</key>
174180
<string>Searching docs for "{query}"...</string>
175181
<key>script</key>
176-
<string>php v0_tailwindcss.php "{query}"</string>
182+
<string>if [ -f "/opt/homebrew/bin/php" ]; then
183+
/opt/homebrew/bin/php v0_tailwindcss.php "{query}"
184+
elif [ -f "/usr/local/bin/php" ]; then
185+
/usr/local/bin/php v0_tailwindcss.php "{query}"
186+
elif [ -f "/usr/bin/php" ]; then
187+
/usr/bin/php v0_tailwindcss.php "{query}"
188+
fi</string>
177189
<key>scriptargtype</key>
178190
<integer>0</integer>
179191
<key>scriptfile</key>
@@ -241,7 +253,13 @@
241253
<key>runningsubtext</key>
242254
<string>Searching docs for "{query}"...</string>
243255
<key>script</key>
244-
<string>php v1_tailwindcss.php "{query}"</string>
256+
<string>if [ -f "/opt/homebrew/bin/php" ]; then
257+
/opt/homebrew/bin/php v1_tailwindcss.php "{query}"
258+
elif [ -f "/usr/local/bin/php" ]; then
259+
/usr/local/bin/php v1_tailwindcss.php "{query}"
260+
elif [ -f "/usr/bin/php" ]; then
261+
/usr/bin/php v1_tailwindcss.php "{query}"
262+
fi</string>
245263
<key>scriptargtype</key>
246264
<integer>0</integer>
247265
<key>scriptfile</key>
@@ -335,7 +353,7 @@ Either press `⌘Y` to Quick Look the result, or press `&lt;enter&gt;` to open i
335353
<key>variablesdontexport</key>
336354
<array/>
337355
<key>version</key>
338-
<string>2.0.0</string>
356+
<string>2.0.1</string>
339357
<key>webaddress</key>
340358
<string>https://github.com/clnt/alfred-tailwindcss-docs</string>
341359
</dict>

0 commit comments

Comments
 (0)