Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

method libtmux stable

Server.source_file

Source a tmux configuration file via $ tmux source-file.

Source and package
Qualified name
libtmux.Server.source_file
Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/server.py
Other languages
PowerShell Julia Ruby Lua TypeScriptRustGoJavaC#C++Swift Kotlin Scala F#
source_file ( self, path: StrPath, quiet: bool | None = None, parse_only: bool | None = None, verbose: bool | None = None, ) → None

Examples#

>>> import pathlib
>>> conf = pathlib.Path(request.config.rootdir) / '..' / 'tmp_src.conf'
>>> _ = conf.write_text('set -g @test_source yes')
>>> server.source_file(str(conf))
Parameters

tmux command source-file

In other ports Load a tmux configuration file
Esc

Type to search.

Reference preview Open reference