libtmux Reference MCP Search
On this page

tmux.Session.Rename

View as Markdown

Module
tmux
Declared in
Session
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/session_lifecycle.go
Other languages
PythonTypeScriptRustJava.NETC++Swift
Rename ( ctx : context.Context , name : string ) (Session, error)
method [source]
method [source]
Rename

Rename changes the receiver session's name and returns a canonical freshly materialized Session . If the command succeeds but refresh fails, it returns the receiver with that error. A transport or context error can be delivery-ambiguous; no rollback is attempted. Invalid names are rejected before execution and match ErrInvalidRequest.

In other languages Rename a session

0 declared, 0 inherited

Esc

Type to search.