Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1016 Bytes

readme.md

File metadata and controls

46 lines (38 loc) · 1016 Bytes

rTMUXer build

Use yaml config to define tmux sessions and windows layout.

Install

You can download binary from latest release or install using cargo:

$ cargo install --git https://github.com/Badrpas/rtmuxer.git

Usage

With specific config file(s):

Define config file:

# server-conf.yaml

# create a session named `foo`
foo:

  # create a window named `bar`
  bar:
    # set current dir to `/www`; if not absolute - resolves from config location
    cwd: /www
    # run a command in the window
    cmd: http-server .
    # set PORT environment variable
    env:
      PORT: 8080
$ rtmuxer server-conf.yaml

Implicitly use config in current dir:

Filepath can be omitted if config named rtmuxer.yaml exists in current working directory:

# rtmuxer.yaml
hello:
  world:
    cmd: echo hi
$ rtumxer