libtmux Reference MCP Search
On this page

server.Server.sourceFile

View as Markdown

Module
server
Declared in
Server
Package
@libtmux/libtmux
Source
packages/libtmux/src/server.ts
sourceFile ( path : : string ) Promise<void>
method [source]
method [source]
sourceFile

Run a tmux config file against this server.

tmux does not expand here. source-file joins a path that is not absolute to the client's working directory and globs the result, so "~/.tmux.conf" looks for a directory literally named . Typing it at a shell works because the shell expands it first; passing it as a string never does.

Examples

await server.sourceFile(`${process.env["HOME"] ?? "."}/.tmux.conf`);

0 declared, 0 inherited

Esc

Type to search.