Use yaml
config to define tmux
sessions and windows layout.
You can download binary from latest release or install using cargo:
$ cargo install --git https://github.com/Badrpas/rtmuxer.git
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
Filepath can be omitted if config named rtmuxer.yaml
exists in current working directory:
# rtmuxer.yaml
hello:
world:
cmd: echo hi
$ rtumxer