WHAT NEW IN X11.04 WED

AI collections from X · 22 collections · 66,612 posts

jevIMAGE

Using Jev for zsh history command completion

jev-shell-history sends the last 100 deduplicated history commands to Jev to pick the most likely one, supports fuzzy matching and returns a confidence score, at about 0.7–0.9 seconds per request.

GitHubDaily
@GitHub_DailyArchived 2026.09.24Originally posted 2026.09.23
Using Jev for zsh history command completion
GitHubDaily @GitHub_DailyOriginally posted 2026.09.23
Open original on X

看到 Jev 模型一个挺实用的用法,给 zsh 做历史命令补全,像 fish 那样在光标后面显示灰色建议。 每敲一个字,jev-shell-history 就把最近 100 条不重复的历史命令交给 Jev,让它挑出我们最可能想敲的那条,按右方向键接受。 我觉得最好用的是模糊匹配,敲一句 last 5 commits,历史里没有哪条命令是这么开头的。 它照样能把查最近 5 次提交的那条 git log 翻出来,后面还带一个分数,表示有多大把握。 GitHub:http://github.com/mrnugget/jev-shell-history Jev 不生成文字,只回答「选哪个」「对不对」这类问题并给出概率。前缀匹配、去重这些规则写在代码里,模型只负责拿主意。 每次请求大概 0.7 到 0.9 秒,需要 TypeSafe 的 API Key。经常按上方向键翻半天找长命令的,可以装上试试。

x.com/github_daily/status/2102578718824931766Archived 2026.09.24 10:18