TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Zev – Remember (or discover) terminal commands

87 点作者 dtnewman21 天前

15 条评论

submeta21 天前
Nice! I use a combination of an endless bash (zsh) history with timestamps that I navigate via fzf and ctr+r and comments I occasionally add to commands via # at the end followed by my annotation so that I can rediscover the command.<p>I do this ever since I switched to a Mac in 2015 and my history has over 60,000 lines. So that’s basically my knowledge base :)<p>But your project looks nice. Will check out.
评论 #43787845 未加载
评论 #43786227 未加载
AvieDeckard21 天前
Your gif in your README features a prompt asking to &quot;show all files in this directory&quot; but the &#x27;ls -lh&#x27; returned and selected in the demo gif does not show all files, just the ones that aren&#x27;t hidden. I&#x27;d have chosen a more accurate interaction for the demo.
评论 #43803418 未加载
chrisco2321 天前
I&#x27;m trying to get this to work with ollama. I&#x27;m on Arch Linux, fish shell, new to ollama, and only very rarely used pipx. I get:<p>raise ValueError(&quot;OPENAI_BASE_URL and OPENAI_API_KEY must be set. Try running `zev --setup`.&quot;) ValueError: OPENAI_BASE_URL and OPENAI_API_KEY must be set. Try running `zev --setup`<p>even when I run (for example) set -x ZEV_USE_OLLAMA 1; zev &#x27;show all files and all permissions&#x27;
评论 #43785261 未加载
arjie21 天前
I don&#x27;t like most of these commands because they just execute. This one is nice because it will be in your history. The current trick I use is to use copilot.vim at the command line. It naturally fits into my flow.<p>Recently some of my friends reported that it just wants to do comments and I&#x27;ve noticed that it actually biases towards that nowadays, so I start it with something to get it kicked off.<p>I&#x27;ve been managing to try to figure out what in the prompt makes it like that, but for the moment that little workaround gives me both the comment and the command in my history so it&#x27;s easier to r-i-search for it.<p><a href="https:&#x2F;&#x2F;x.com&#x2F;arjie&#x2F;status&#x2F;1575201117595926530" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;arjie&#x2F;status&#x2F;1575201117595926530</a><p>You just set up copilot for neovim normally and set it as your EDITOR. <a href="https:&#x2F;&#x2F;wiki.roshangeorge.dev&#x2F;index.php&#x2F;AI_Completion_In_The_Shell" rel="nofollow">https:&#x2F;&#x2F;wiki.roshangeorge.dev&#x2F;index.php&#x2F;AI_Completion_In_The...</a>
CGamesPlay21 天前
You may be interested in copying some of the usage patterns from my similar project: <a href="https:&#x2F;&#x2F;github.com&#x2F;CGamesPlay&#x2F;llm-cmd-comp">https:&#x2F;&#x2F;github.com&#x2F;CGamesPlay&#x2F;llm-cmd-comp</a><p>Instead of being a separate command, I released a set of key bindings you can push that start the LLM prompt with your current command line, and if you successfully accept the suggestion, replace your command line with the result, bypassing the manual clipboard step, and making it so that the result goes into your shell history as a normal command.
0x696C696121 天前
I really like how it gives you multiple options to choose from. I&#x27;ve been using <a href="https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;llm-cmd">https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;llm-cmd</a>
评论 #43785904 未加载
arp24221 天前
Named after Zev from the film <i>Remember</i>? A few years back I wrote a Vim plugin to remember things with the same name :-)
评论 #43787814 未加载
Bishonen8821 天前
<a href="https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;codewhisperer&#x2F;latest&#x2F;userguide&#x2F;command-line-conversation.html" rel="nofollow">https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;codewhisperer&#x2F;latest&#x2F;userguide&#x2F;c...</a><p>Looks like cw from aws
sathishvj21 天前
Nice! Little plug for what I did too, in a similar vein - it has a web version <a href="https:&#x2F;&#x2F;gencmd.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gencmd.com&#x2F;</a> and also a cmd line version.
badmonster21 天前
Since it&#x27;s generating terminal commands dynamically, what safeguards (if any) are in place to avoid generating destructive or insecure commands (like rm -rf &#x2F;, etc.)?
评论 #43791602 未加载
评论 #43791473 未加载
latchkey21 天前
Why not <a href="https:&#x2F;&#x2F;docs.atuin.sh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.atuin.sh&#x2F;</a>?
评论 #43787325 未加载
wapxmas21 天前
how do I install it with pip? It requires to be in virtual environment. (
评论 #43785787 未加载
评论 #43785796 未加载
tzury21 天前
Newman!
regnull21 天前
Somewhat related, here&#x27;s a little project I&#x27;ve done with LLM: <a href="https:&#x2F;&#x2F;github.com&#x2F;regnull&#x2F;how.sh">https:&#x2F;&#x2F;github.com&#x2F;regnull&#x2F;how.sh</a><p>It uses locally hosted (or remote) LLMs to create and execute shell commands that you describe. You can go as far as writing &quot;shell scripts&quot; in natural language.
评论 #43785702 未加载
imzadi21 天前
Hi Zev!