Feature: add new motd "prompt" display mode

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

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).

Dominant language
Rust
Stars
2k
Forks
70
Avg merge
2d 3h
Merged PRs (30d)
6

Getting set up

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.

More from shell-pool/shpool

All issues in shell-pool/shpool

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.