TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

87 pointsby dtnewman20 days ago

15 comments

submeta20 days ago
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 未加载
AvieDeckard20 days ago
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 未加载
chrisco2320 days ago
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 未加载
arjie20 days ago
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>
CGamesPlay20 days ago
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.
0x696C696120 days ago
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 未加载
arp24220 days ago
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 未加载
Bishonen8819 days ago
<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
sathishvj19 days ago
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.
badmonster19 days ago
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 未加载
latchkey20 days ago
Why not <a href="https:&#x2F;&#x2F;docs.atuin.sh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.atuin.sh&#x2F;</a>?
评论 #43787325 未加载
wapxmas20 days ago
how do I install it with pip? It requires to be in virtual environment. (
评论 #43785787 未加载
评论 #43785796 未加载
tzury20 days ago
Newman!
regnull20 days ago
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 未加载
imzadi20 days ago
Hi Zev!