玩法很简单,放个 YAML 配置到 ~/.termocli/dev.yml
。比如:
windows:
- name: dev
layout: main-vertical
root: ~/workspace/p01
panes:
- commands:
- git fetch --all
focus: true
- eval "$(docker-machine env dev)"; ~/workspace/env/dev/bin/python p01-watcher.py
- eval "$(docker-machine env dev)"; docker logs -f p01_app_1
这样就能整出如下布局:
.------------------.------------------.
| (0) | (1) |
| | |
| | |
| | |
| |------------------|
| | (2) |
| | |
| | |
| | |
'------------------'------------------'
参考文章: