Skip to main content

Module path_config

Module path_config 

Source
Expand description

Shell PATH integration.

Adds ~/.spool/bin to the user’s shell PATH by appending a marked block to ~/.zshrc / ~/.bashrc / ~/.config/fish/config.fish.

The block is delimited by # >>> spool >>> / # <<< spool <<< lines, so it can be safely re-inserted on upgrades or removed on uninstall.

Best-effort: if no shell rc file is detected or writable, returns path_configured: false without erroring.

Structs§

PathConfigReport
Result of a PATH configuration attempt.

Functions§

configure_path
Add ~/.spool/bin to PATH in every detected shell rc file. Idempotent — running twice is a no-op.