On this page
server.Server.sourceFile
- Module
- server
- Declared in
- Server
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/server.ts
-
Run a tmux config file against this server.
tmux does not expand
here.source-filejoins 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