Server.at_default
The server a bare tmux command reaches from this process, unless the environment names another: the one a person means when they say "my tmux".
Source and package
- Qualified name
-
libtmux::Server:: at _default - Namespace
- libtmux
- Declared in
Server- Package
- libtmux-cxx
- Source
- include/libtmux/server.hpp
- [[
C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.]] static expected<Server, CommandFailure > at_default(CommandObserver observer = {}, ExecutionPolicy policy = {}); -
Description#
LIBTMUX_SOCKET_PATHselects a socket path (-S), elseLIBTMUX_SOCKETa socket name (-L);socket_from_environment()has the rules for both set, for a blank value and for the diagnostic. With neither set the handle names no socket and tmux picks the server: the oneTMUXnames inside a tmux pane, and the default socket underTMUX_TMPDIRelsewhere. Either waysocket_path()reports the server the commands reach. A variable that cannot be used fails with the variable named and its value left out;at_socket_path()andat_socket_name()read neither variable.- Parameters
Guides#
Pages that discuss at_default.