libtmux Reference MCP Search
On this page

libtmux.common.get_version

View as Markdown

Module
libtmux.common
Package
libtmux
Source
src/libtmux/common.py
get_version ( tmux_bin : str | None = None ) LooseVersion
function [source]
function [source]
get_version

Return tmux version.

If tmux is built from git master, the version returned will be the latest version appended with -master, e.g. 2.4-master.

If using OpenBSD's base system tmux, the version will have -openbsd appended to the latest version, e.g. 2.4-openbsd.

Parameters
Returns

distutils.version.LooseVersion tmux version according to *tmux_bin* if provided, otherwise the system tmux from shutil.which

0 declared, 0 inherited

Esc

Type to search.