libtmux Reference MCP Search
On this page

Server.hasSession(_:)

View as Markdown

Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Server.swift
hasSession(_:) ( name : String ) Bool
methodasync [source]
methodasync [source]
hasSession(_:)

Whether a session by this name or id exists.

Asks the question tmux has a command for rather than listing every session and searching one: has-session answers with its exit status, so this decodes nothing and stays correct for a name a listing would have to be parsed to find.

Raises

0 declared, 0 inherited

Esc

Type to search.