Assure you have at least tmux >= 1.8 and python >= 2.6.
$ pip install tmuxpYou can upgrade to the latest release with:
$ pip install tmuxp -UThen install :ref:`completion`.
.. seealso:: :ref:`examples`, :ref:`cli`, :ref:`completion`.
tmuxp launches workspaces / sessions from JSON and YAML files.
Configuration files can be stored in $HOME/.tmuxp or in project
directories as .tmuxp.py, .tmuxp.json or .tmuxp.yaml.
Every configuration is required to have:
session_name- list of
windows - list of
panesfor every window inwindows
Create a file, ~/.tmuxp/example.yaml:
.. literalinclude:: ../examples/2-pane-vertical.yaml
:language: yaml
$ tmuxp load example.yamlThis creates your tmuxp session.
Load multiple tmux sessions at once:
$ tmuxp load example.yaml anothersession.yamltmuxp will offer to switch-client for you if you're already in a
session.
You can also have a custom tmuxp config directory by setting the
TMUX_CONFIGDIR in your environment variables.
$ TMUXP_CONFIGDIR=$HOME/.tmuxpmoo tmuxp load cpythonOr in your ~/.bashrc / ~/.zshrc you can set:
export TMUXP_CONFIGDIR=$HOME/.yourconfigdir/tmuxpYou can also Import configs teamocil and tmuxinator.
.. seealso::
:ref:`libtmux python API documentation <libtmux:api>` and :ref:`developing`,
:ref:`internals`.
ORM - Object Relational Mapper
AL - Abstraction Layer
