diff --git a/src/Plugin.php b/src/Plugin.php index 0c9e3c6..a88d433 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -70,6 +70,10 @@ public function handleArguments(array $originals): array $command = implode(' ', $originals); + if(strpos($command, '--colors=') === false) { + $command .= ' --colors=always'; + } + $output = $this->output; $watcher->on('change', static function () use ($command, $output): void { @@ -106,7 +110,7 @@ private function checkFswatchIsAvailable(): void { exec('fswatch 2>&1', $output); - if (strpos(implode(' ', $output), 'command not found') === false) { + if (strpos(implode(' ', $output), 'not found') === false) { return; }