Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pocke/ptmux

Repository files navigation

ptmux

Coverage Status Build Status

Requirements

  • Go 1.11 or later
  • set -g base-index 1 in your .tmux.conf
  • tmux 2.5 or newer

Installation

export GO111MODULE=on
go get github.com/pocke/ptmux

Usage

Configure

Edit ~/.config/ptmux/PROFILE_NAME.yaml

# Example
root: ~/path/to/your/project/dir
env:
  DATABASE_URL: 'mysql2://username:topsecret@localhost/dbname'
windows:
  - panes:
    - command: 'bin/rails s'
    - command: 'bundle exec sidekiq'
  - panes:
    - command: 'vim'
    - command: 'bundle exec guard'

Command line

$ ptmux PROFILE_NAME

Links

Testing

NOTE: The testing changes tmux options to test. it will set base-index to 1 and renumber-windows to on. It probably changes your tmux options. If you do not want side effect, run tests in a docker container.

Run tests:

$ make test

Run tests in a docker container:

$ make docker_build
$ make test_with_docker

License

These codes are licensed under CC0.

CC0

About

Specify GitHub repository metadata from a file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •