pi-resume-hint
v0.1.1
Published
Pi extension that prints a quirky resume command for the current session when Pi exits.
Maintainers
Readme
pi-resume-hint
A tiny Pi extension that prints a short, mildly dramatic resume hint when Pi exits.
When you quit Pi, it prints a random exit message and the command to resume it:
╭─ NOOOO don't go. Okay fine. Come back with:
╰─ pi --session 123e4567-e89b-12d3-a456-426614174000Install
From this local checkout:
pi install /Users/rohittyagi/Documents/learn/pi-resume-hintOr test for one run without installing:
pi -e /Users/rohittyagi/Documents/learn/pi-resume-hintAfter installing, restart Pi or run /reload.
Usage
Quit Pi normally. The extension listens for Pi's session_shutdown event with reason quit and writes the hint to stderr.
You can also show the current hint at any time:
/resume-hintDisable temporarily
Set this environment variable before starting Pi:
PI_RESUME_HINT_DISABLE=1 piAccepted truthy values are 1, true, yes, and on.
Package details
This is a Pi package. package.json declares:
{
"pi": {
"extensions": ["./extensions"]
}
}Pi loads extensions/index.ts directly; no build step is required.
License
MIT
