Skip to content

Instantly share code, notes, and snippets.

@threeel
Created May 4, 2022 20:55
Show Gist options
  • Select an option

  • Save threeel/ff2f01d6b944c3dd8cc0cf14a9ed62cb to your computer and use it in GitHub Desktop.

Select an option

Save threeel/ff2f01d6b944c3dd8cc0cf14a9ed62cb to your computer and use it in GitHub Desktop.
.psysh.php
<?php
$defaultIncludes = [];
$composerAutoload = getcwd() . DIRECTORY_SEPARATOR . '/vendor/autoload.php';
if (is_file($composerAutoload)) {
$defaultIncludes[] = $composerAutoload;
}
return [
'commands' => [
new \Psy\Command\ParseCommand,
],
"historySize" => 0,
'defaultIncludes' => $defaultIncludes,
'startupMessage' => sprintf('<info>%s</info>', shell_exec('uptime')),
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment