Skip to main content

tmux session manager

Project description

tmuxp, tmux session manager. built on libtmux.

Python Package Documentation Status Build Status Code Coverage License

We need help! tmuxp is a trusted session manager for tmux. If you could lend your time to helping answer issues and QA pull requests, please do! See issue #290!

New to tmux? The Tao of tmux is available on Leanpub and Amazon Kindle. Read and browse the book for free on the web.

Installation

$ pip install --user tmuxp

Load a tmux session

Load tmux sessions via json and YAML, tmuxinator and teamocil style.

session_name: 4-pane-split
windows:
- window_name: dev window
  layout: tiled
  shell_command_before:
    - cd ~/                    # run as a first command in all panes
  panes:
    - shell_command:           # pane no. 1
        - cd /var/log          # run multiple commands in this pane
        - ls -al | grep \.log
    - echo second pane         # pane no. 2
    - echo third pane          # pane no. 3
    - echo forth pane          # pane no. 4

Save as mysession.yaml, and load:

$ tmuxp load ./mysession.yaml

Sessions in ~/.tmuxp/ can use names:

$ tmuxp load mysession

Projects with .tmuxp.yaml or .tmuxp.json load via directory:

$ tmuxp load path/to/my/project/

Load multiple at once (in bg, offer to attach last):

$ tmuxp load mysession ./another/project/

simple and very elaborate config examples

Store configs in (~/.tmuxp) or include in your project as ~/.tmuxp.{yaml,json}. See author’s tmuxp configs and the the projects’ tmuxp.yaml.

Run custom startup scripts (such as installing project dependencies before loading tmux. See the bootstrap_env.py and before_script example

You can also load sessions in the background by passing -d flag

https://raw.github.com/tmux-python/tmuxp/master/doc/_static/tmuxp-demo.gif

Freeze a tmux session

Snapshot your tmux layout, pane paths, and window/session names.

$ tmuxp freeze session-name

See more about freezing tmux sessions.

Docs / Reading material

See the Quickstart.

Documentation homepage (also in 中文)

Want to learn more about tmux itself? Read The Tao of Tmux online.

Donations

Your donations fund development of new features, testing and support. Your money will go directly to maintenance and development of the project. If you are an individual, feel free to give whatever feels right for the value you get out of the project.

See donation options at https://git-pull.com/support.html.

Project details

tmux support

1.8, 1.9a, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7. 2.8

python support

2.7, >= 3.3, pypy, pypy3

config support

yaml, json, python dict

Source

https://github.com/tmux-python/tmuxp

Docs

http://tmuxp.git-pull.com

API

http://tmuxp.git-pull.com/en/latest/api.html

Changelog

http://tmuxp.git-pull.com/en/latest/history.html

Issues

https://github.com/tmux-python/tmuxp/issues

Travis

http://travis-ci.org/tmux-python/tmuxp

Test Coverage

https://codecov.io/gh/tmux-python/tmuxp

pypi

https://pypi-hypernode.com/pypi/tmuxp

Open Hub

https://www.openhub.net/p/tmuxp

License

MIT.

git repo

$ git clone https://github.com/tmux-python/tmuxp.git

install stable

$ pip install --user tmuxp

install dev

$ git clone https://github.com/tmux-python/tmuxp.git tmuxp
$ cd ./tmuxp
$ virtualenv .venv
$ source .venv/bin/activate
$ pip install -e .

See the developing and testing page in the docs for more.

tests

$ make test

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tmuxp-1.5.1.tar.gz (67.5 kB view details)

Uploaded Source

File details

Details for the file tmuxp-1.5.1.tar.gz.

File metadata

  • Download URL: tmuxp-1.5.1.tar.gz
  • Upload date:
  • Size: 67.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15rc1

File hashes

Hashes for tmuxp-1.5.1.tar.gz
Algorithm Hash digest
SHA256 0a8bb0d65d9a816f0f4ac9617904596f65865093fd13118e2b5a856f48ac52e8
MD5 4a7fd52dab5ce9c054728b143334ef75
BLAKE2b-256 56d3553729defa22057c710e2b87e18eac491c671c3b1342a65ba38f6a20d633

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page