shell-pool / shell-pool/shpool

Feature: add new motd "prompt" display mode

Open
#172 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2k
Forks
67
Avg merge
3d 1h
Merged PRs (30d)
15

Description

We should add a new "prompt" motd display mode that leverages our prompt hook infrastructure by adding a mechanism to check for and dump out any $XDG_RUNTIME_DIR/shpool/motd.txt file found before deleting it. Then shpool attach can populate this file based on a cooldown the same way we have for pager mode (though the cooldown will be required not optional since we wouldn't want to display this every prompt).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the prompt hook infrastructure and the existing pager mode used by shpool attach. Identify where shpool attach applies its cooldown and where prompt output can check $XDG_RUNTIME_DIR/shpool/motd.txt; done means a prompt mode reads and deletes that file, with a required cooldown preventing display on every prompt.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.