-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathshell
More file actions
33 lines (26 loc) · 687 Bytes
/
Copy pathshell
File metadata and controls
33 lines (26 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
declare(strict_types=1);
/**
* shell
*
* usage: php shell
*
* @see https://github.com/bobthecow/psysh
*/
# bootstrap the full app in the psych config
require_once __DIR__ . "/vendor/autoload.php";
# https://github.com/bobthecow/psysh/wiki/Sample-config
$config = new Psy\Configuration([
"defaultIncludes" => [ __DIR__ . "/bootstrap/cli.php" ],
"updateCheck" => "never",
# https://github.com/bobthecow/psysh/wiki/Themes
"theme" => [
"prompt" => "gazelle ⟫ ",
"bufferPrompt" => "⋯ ",
"replayPrompt" => "⤑ ",
"returnValue" => "⇒ ",
],
]);
# load a psysh instance
$shell = new Psy\Shell($config);
$shell->run();