[开源] soon v0.4.1:在本地预测下一条 Zsh 命令,也能修复刚输错的命令
我做了一个叫 soon 的本地命令预测工具。和补全当前单词不同,它会根据你自己的终端历史,在命令成功后预测工作流的下一步,也会在失败后给出修复建议,例如 `git psuh → git push`。
建议以灰色 ghost text 出现;按 Ctrl-F 只是把它放进可编辑的命令行,是否修改、执行或清空仍由你决定,soon 不会自动按 Enter。默认预测器是确定性的本地算法,不调用模型,也不访问网络;疑似敏感的命令会在学习前过滤。
v0.4.1 已可从 Cargo 和 PyPI 安装:
```bash
cargo install soon
```
或
```bash
python -m pip install soon-bin
```
项目地址:[https://github.com/HsiangNianian/soon](https://github.com/HsiangNianian/soon)
我们正在招募 10 位 Zsh 用户做隐私安全的试用,只提交聚合计数,不收原始命令:[https://github.com/HsiangNianian/soon/issues/27](https://github.com/HsiangNianian/soon/issues/27)
---
原文链接:[点击查看](https://www.v2ex.com/t/1230688)
建议以灰色 ghost text 出现;按 Ctrl-F 只是把它放进可编辑的命令行,是否修改、执行或清空仍由你决定,soon 不会自动按 Enter。默认预测器是确定性的本地算法,不调用模型,也不访问网络;疑似敏感的命令会在学习前过滤。
v0.4.1 已可从 Cargo 和 PyPI 安装:
```bash
cargo install soon
```
或
```bash
python -m pip install soon-bin
```
项目地址:[https://github.com/HsiangNianian/soon](https://github.com/HsiangNianian/soon)
我们正在招募 10 位 Zsh 用户做隐私安全的试用,只提交聚合计数,不收原始命令:[https://github.com/HsiangNianian/soon/issues/27](https://github.com/HsiangNianian/soon/issues/27)
---
原文链接:[点击查看](https://www.v2ex.com/t/1230688)
· 0 个赞