pi-resume-on-exit
v0.1.3
Published
Print a copyable Pi resume command when an interactive Pi session exits.
Downloads
245
Maintainers
Readme
pi-resume-on-exit
A Pi package that prints a copyable resume command when an interactive Pi session exits via quit.
Behavior
- Listens for Pi
session_shutdownevents. - Prints only for quit shutdowns, including Ctrl+C/Ctrl+D/SIGTERM exits handled by Pi.
- Prefers the active session id when available.
- Falls back to the session file path and shell-quotes it safely.
- Never blocks or throws during shutdown.
Example output:
Resume this Pi session:
pi --session abc123Install
Public npm package:
pi install npm:pi-resume-on-exitSource package from GitHub:
pi install git:github.com/mujuni88/pi-resume-on-exitDevelopment
npm install
npm run check