Skip to content

Commit

Permalink
Update README.中文.md (#2424)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannchie authored Oct 10, 2024
1 parent e0f6e09 commit 4f31853
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.中文.md
Original file line number Diff line number Diff line change
Expand Up @@ -2303,6 +2303,19 @@ foo $argument:

- [`watchexec`](https://github.com/mattgreen/watchexec) — 一个简单的工具,它监控一个路径,并在检测到修改时运行一个命令。

### 并行运行任务

GNU parallel 可以用来同时运行多个任务:

```just
parallel:
#!/usr/bin/env -S parallel --shebang --ungroup --jobs {{ num_cpus() }}
echo task 1 start; sleep 3; echo task 1 done
echo task 2 start; sleep 3; echo task 2 done
echo task 3 start; sleep 3; echo task 3 done
echo task 4 start; sleep 3; echo task 4 done
```

### Shell 别名

为了快速运行命令, 可以把 `alias j=just` 放在你的 Shell 配置文件中。
Expand Down

0 comments on commit 4f31853

Please sign in to comment.