Skip to content

Add a cmdlet for kill-server #89

Closed

Description

@tony

Summary

No cmdlet stops a tmux server. Remove-TmuxSession, Remove-TmuxWindow and Remove-TmuxPane cover kill-session, kill-window and kill-pane, and kill-server is reachable only through the raw-command cmdlet Invoke-TmuxCommand.

Motivation

A script that owns a private server, such as one named by New-TmuxServer on its own socket, can end it only with $server | Invoke-TmuxCommand -Arguments 'kill-server' -Confirm:$false. The three kill cmdlets take a typed Session, Window or Pane and report an error ID such as Tmux.SessionRemoveFailed; the server stop has neither. The removal guide says removal gives the module no ownership of the daemon, and the compatibility guide mentions kill-server only to say that, with no daemon answering, Invoke-TmuxCommand returns an empty successful result and dispatches nothing.

libtmux for Go has Server.Kill and libtmux for Rust has Server::kill.

References

Activity

  1. added
    enhancement
    on Nov 14, 2026
  2. added 2 commits that reference this issue on Nov 15, 2026
    f422fc9
    5b47c29
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions