Server.shellInvocation
How a command running inside a pane spells a tmux that reaches this server.
Source and package
- Qualified name
-
Server.shell Invocation - Declared in
Server- Package
- libtmux-swift
- Source
- Sources/LibTmux/PaneInteraction.swift
- shellInvocation : var shell
Invocation : String -
Description#
A bare
tmuxthere is whichever one is on the pane'sPATH, which is not necessarily this one — and a client whose protocol version differs from the server's is refused withserver exited unexpectedlyrather than anything that names the cause. Composing a command with this instead removes both thePATHlookup and the guess about which serverTMUXrefers to:Quoted for a POSIX shell, so a path containing spaces survives being typed into one.
Examples#
try await server.run("make; \(server.shellInvocation) wait-for -S built",in: pane)try await server.wait(for: "built")