Skip to content

terminal: per-host command history, like Termius #66

Open

Description

@your-moon

What would you like to be added?

A history of the commands run on each host, like Termius has. A panel or picker per host lists recent commands, newest first, and picking one types it into the terminal (or runs it, like snippets). One button saves a command from the history as a snippet.

Why is this needed?

You often repeat the same commands on the same server: docker ps, a log tail, a restart. Termius users expect this and look for it when they switch. Snippets cover the commands you save on purpose, but not "what did I run on web-01 yesterday".

Decisions needed before building it:

  • How commands are captured. Reading lines typed into the terminal is unreliable (line editing, tab completion, prompts inside programs) and can capture secrets typed at password prompts. Reading the remote shell's own history (~/.bash_history) depends on the shell and its settings. Shell integration (OSC 133 markers) is accurate but needs setup on each server.
  • Privacy. History is sensitive. Should it stay local only, or sync encrypted like snippets? Never record anything typed while a password prompt is detected, nor anything filled by ⌘\.
  • Limits. How many entries per host, and an easy way to clear them.

Activity

  1. added
    kind::feature
    triage::needs-decision
    area::tern
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area::ternkind::featuretriage::needs-decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions