https://github.com/weaming/tmux-tasks
Run background tasks in tmux
https://github.com/weaming/tmux-tasks
Last synced: about 1 month ago
JSON representation
Run background tasks in tmux
- Host: GitHub
- URL: https://github.com/weaming/tmux-tasks
- Owner: weaming
- Created: 2026-03-06T05:25:49.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-03-22T09:16:23.000Z (3 months ago)
- Last Synced: 2026-03-23T00:24:59.172Z (3 months ago)
- Language: Go
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tmux-tasks
命令行管理 tmux 后台任务
## 安装
```bash
bash build.sh
```
## 配置
创建 `tasks.yaml`:
```yaml
machine:
ssh: hk
tasks:
webhook:
command: ~/bin/webhook -c ~/.dotfiles/env/weaming-hooks.yaml
description: webhook 服务
v2ray-profiles:
command: markdir -no-index '/'
cwd: ~/my-docs
description: 文档管理
```
## 使用
```bash
tmux-tasks list # 列出任务
tmux-tasks start # 启动所有任务
tmux-tasks start # 启动指定任务
tmux-tasks stop # 停止所有任务
tmux-tasks stop # 停止指定任务
tmux-tasks restart # 重启所有任务
tmux-tasks logs # 查看日志
```
## 环境变量
- `TMUX_TASKS` - 配置文件路径
## 任务配置
| 字段 | 说明 |
| ----------- | ---------- |
| command | 执行的命令 |
| cwd | 工作目录 |
| env | 环境变量 |
| description | 描述 |