libtmux.common.get_version
Python
- Python
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- libtmux.common
- Package
- libtmux
- Source
- src/libtmux/common.py
-
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
-openbsdappended to the latest version, e.g.2.4-openbsd.- Parameters
-
-
tmux_bin ( str | None ) – Path to tmux binary. If *None*, uses the system tmux from
shutil.which.
-
- Returns
-
distutils.version.LooseVersiontmux version according to *tmux_bin* if provided, otherwise the system tmux fromshutil.which
0 declared, 0 inherited