|
105 | 105 | <key>runningsubtext</key>
|
106 | 106 | <string>Searching docs for "{query}"...</string>
|
107 | 107 | <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> |
109 | 115 | <key>scriptargtype</key>
|
110 | 116 | <integer>0</integer>
|
111 | 117 | <key>scriptfile</key>
|
|
173 | 179 | <key>runningsubtext</key>
|
174 | 180 | <string>Searching docs for "{query}"...</string>
|
175 | 181 | <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> |
177 | 189 | <key>scriptargtype</key>
|
178 | 190 | <integer>0</integer>
|
179 | 191 | <key>scriptfile</key>
|
|
241 | 253 | <key>runningsubtext</key>
|
242 | 254 | <string>Searching docs for "{query}"...</string>
|
243 | 255 | <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> |
245 | 263 | <key>scriptargtype</key>
|
246 | 264 | <integer>0</integer>
|
247 | 265 | <key>scriptfile</key>
|
@@ -335,7 +353,7 @@ Either press `⌘Y` to Quick Look the result, or press `<enter>` to open i
|
335 | 353 | <key>variablesdontexport</key>
|
336 | 354 | <array/>
|
337 | 355 | <key>version</key>
|
338 |
| - <string>2.0.0</string> |
| 356 | + <string>2.0.1</string> |
339 | 357 | <key>webaddress</key>
|
340 | 358 | <string>https://github.com/clnt/alfred-tailwindcss-docs</string>
|
341 | 359 | </dict>
|
|
0 commit comments