Skip to content

Commit

Permalink
feat: support tj/n (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle authored Feb 19, 2024
1 parent 87ac0bd commit aa05eda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Shiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ public function getWorkingDirPath(): string

protected function callShiki(...$arguments): string
{
$home = getenv("HOME");
$command = [
(new ExecutableFinder())->find('node', 'node', [
'/usr/local/bin',
'/opt/homebrew/bin',
$home . '/n/bin', // support https://github.com/tj/n
]),
'shiki.js',
json_encode(array_values($arguments)),
Expand Down

0 comments on commit aa05eda

Please sign in to comment.