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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Atuin – Magical shell history

327 点作者 tambourine_man超过 1 年前

35 条评论

berkes超过 1 年前
I love how it looks and I love some of the fancy features.<p>But above all, it&#x27;s a solution to two real problems I had.<p>I work in several terminals. Sometimes tabs or Windows in my emulator, sometimes screen or tmux. And all those sessions would overwrite eachothers history. I lost many actual important history entries that way. And I (almost) ran many wrong commands, expecting another one to be my last entry. Arrow-up enter. Woops.<p>Atuin solved this.<p>I had my history as large as possible. Ctrl-r is my friend to search for &quot;that old thing I did to pgsql piping something from zcat a year ago&quot;. But it&#x27;s ever slower, zsh and bash history clearly not designed to handle (tens of) thousands of entries.<p>Atuin solved this.
评论 #39463548 未加载
评论 #39463356 未加载
评论 #39462143 未加载
评论 #39464904 未加载
wswope超过 1 年前
Atuin has been the absolute best CLI tool I’ve found in years.<p>I use it every single day that I’m at a computer. It&#x27;s very easy to learn (2 or 3 essential hotkeys), and makes finding old shell commands a breeze. I was able to self-host the sync server in well under an hour, start to finish.<p>(@ellie - if you see this thread, thanks for all the elbow grease you put in! You’ve built something really special.)
评论 #39461673 未加载
kstrauser超过 1 年前
Why is this better than a shell&#x27;s built-in history, possibly paired with fzf?<p>I&#x27;m not asking sarcastically, either. Is this something awesome I should be using? What about it is going to blow my mind?
评论 #39461579 未加载
评论 #39460991 未加载
评论 #39475916 未加载
评论 #39461540 未加载
评论 #39461381 未加载
评论 #39463387 未加载
dang超过 1 年前
Related:<p><i>Atuin replaces your existing shell history with a SQLite database</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38936102">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38936102</a> - Jan 2024 (10 comments)<p><i>I quit my job to work full time on my open source project</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38935205">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38935205</a> - Jan 2024 (176 comments)<p><i>Atuin replaces your existing shell history with a SQLite database</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35839470">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35839470</a> - May 2023 (193 comments)<p><i>Atuin replaces your existing shell history with a SQLite database</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35688117">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35688117</a> - April 2023 (1 comment)<p><i>Atuin for zsh shell history in SQLite</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31177943">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31177943</a> - April 2022 (1 comment)<p><i>Show HN: Atuin, improved shell history with multi-machine sync</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27079862">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27079862</a> - May 2021 (9 comments)
eigenvalue超过 1 年前
I&#x27;ve been using this for a couple months after using McFly in zsh for over a year. I think I can say that I like it better, but the only thing I sometimes don&#x27;t like is how it completely takes over your screen when you press the up arrow. I usually just want to get the previous command I entered instead of the whole searchable history (which I use Control-R to bring up), and it&#x27;s really jarring to have the entire screen change. Aside from that, it&#x27;s really awesome to have everything synced across a bunch of machines.
评论 #39462683 未加载
评论 #39464384 未加载
评论 #39462786 未加载
评论 #39463823 未加载
mirashii超过 1 年前
I mostly really like atuin, but it has been causing some random other breakage in my shell that has me on the verge of replacing it with something simpler. A quick search comes up with <a href="https:&#x2F;&#x2F;github.com&#x2F;atuinsh&#x2F;atuin&#x2F;issues&#x2F;1696">https:&#x2F;&#x2F;github.com&#x2F;atuinsh&#x2F;atuin&#x2F;issues&#x2F;1696</a> , which indicates I&#x27;m not alone.
评论 #39462137 未加载
评论 #39461542 未加载
hiddencost超过 1 年前
A&#x27;tuin the world turtle, from disc world:<p><a href="https:&#x2F;&#x2F;discworld.fandom.com&#x2F;wiki&#x2F;Great_A%27Tuin" rel="nofollow">https:&#x2F;&#x2F;discworld.fandom.com&#x2F;wiki&#x2F;Great_A%27Tuin</a>
gaws超过 1 年前
This has been discussed ad nauseam:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35839470">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35839470</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38936102">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38936102</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27079862">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27079862</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32491840">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32491840</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31177943">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31177943</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35688117">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35688117</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38969077">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38969077</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37127909">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37127909</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35876290">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35876290</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34972384">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34972384</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33786580">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33786580</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38797713">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38797713</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39457875">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39457875</a>
deng超过 1 年前
The page claims this is &quot;trusted by engineers&quot; at Google, MS, Apple, Amazon, you name it. Could maybe some engineer at these companies enlighten me how you could convince your security team that it is fine that all your shell commands are streamed to an outside server? Yes, I know it&#x27;s E2E, but still, without a proper audit, my security department here would laugh me out of the room if I&#x27;d ask for this. Do you all self-host the server in-house? If so, did you do a code review of the server code?
评论 #39464331 未加载
评论 #39464246 未加载
评论 #39464697 未加载
weinzierl超过 1 年前
I treat my shell histories like documents.<p>When I start a new shell, it starts a new history with a generated meaningful name. That is good for one-off things and experiments. History is still always preserved. Nothing gets lost.<p>Most of my work is done in (usually long-lived) <i>manually named</i> sessions, that write their history to a file named like the session. I can restart old sessions any time.<p>Everything is in plain text files in ~&#x2F;.history, which has pros and cons. One advantage is that I can archive older history files very easily. I often ripgrep through my whole history as well, though I occasionally long for it being in a proper database and content being more structured.<p>I can share my history sessions and use them from multiple shells simultaneously, but practically never do that, so it is not an important use case for me.<p>Would Atuin bring any benefit for me?
jeppesen-io超过 1 年前
I switched a year or two ago<p>It wasn&#x27;t until I switched that I realized how poor bash and zsh are in comparison, even with fzf<p>10 min install, never looked back<p>Not to mention the safety. Never could figure it out, but once every 15 months or so, zsh would disappear my history. Certainly a mistake on my end, but still too easy to blow away history
评论 #39462027 未加载
评论 #39462173 未加载
magospietato超过 1 年前
Really impressed with the self-host setup.<p>I&#x27;ve found these are usually a bit of an afterthought, involving a bunch of service dependencies and an arcane config process.<p>Postgres 14 and a few tweaks to a TOML file and you&#x27;re running.<p>Not wild about the password-only Postgres connection though.
评论 #39466380 未加载
javrin超过 1 年前
Been using atuin for a couple months now on Windows in bash. Its a very nice tool however I&#x27;ve been experiencing a huge lag sometimes after typing just one character. Intuition says there could be the database performance is lacking or Im missing some configuration. Anyone else experiencing something similar?
评论 #39463025 未加载
评论 #39467137 未加载
评论 #39464518 未加载
moyix超过 1 年前
Atuin is lovely, although I found some of its defaults pretty annoying until I changed them:<p>- It turns out I basically never want fuzzy search through my command history, and certainly not by default. I gave it a try for a couple weeks but it was very frustrating to be searching for a particular command, type in the exact prefix, and have the thing I was looking for hidden among hundreds of irrelevant entries. Solution: search_mode = &quot;fulltext&quot; in Atuin&#x27;s config.toml<p>- Having a full screen pop-up appear whenever I hit up was <i>really</i> jarring, especially since I have a habit of hitting up a few times when I&#x27;m at the command line thinking of what I need to do next, to sort of refresh my memory on what I was just doing; the popup very effectively destroyed that chain of thought. Solution: eval &quot;$(atuin init bash --disable-up-arrow)&quot; in .bashrc<p>These are pretty minor issues and it&#x27;s possible my preferences are just different from most!<p>Atuin now works really nicely for me. My only outstanding issues are:<p>- Under mosh the UI ends up corrupting the screen; apparently this is really more of a mosh bug (no alternate screen support) and you can work around it by having tmux&#x2F;screen running: <a href="https:&#x2F;&#x2F;github.com&#x2F;atuinsh&#x2F;atuin&#x2F;issues&#x2F;1324">https:&#x2F;&#x2F;github.com&#x2F;atuinsh&#x2F;atuin&#x2F;issues&#x2F;1324</a><p>- I still don&#x27;t have a great model in my head of how sync works and find myself occasionally force-syncing across a few systems until I convince myself everything is in the same state.<p>- It would be nice to have some kind of settings sync so I don&#x27;t have to make the config changes mentioned above on 10 different systems. Surprisingly I don&#x27;t see a feature request for this yet so maybe I&#x27;ll go open one...<p>Anyway I don&#x27;t want these issues to stop people from trying Atuin – it&#x27;s a really nice piece of software. I almost never make changes to the default environment so I consider it a testament to how useful it is that I&#x27;ve added it to all the systems I use regularly!
评论 #39473139 未加载
dphuang2超过 1 年前
Recently installed Atuin and found it to be overall net positive. A couple of habitual keystroke combos had to be reprogrammed from my brain but the persistence of shell history + better searching is pretty awesome.<p>Also the stats are a neat add-on.<p>Overall would recommend to almost any developer.
hiAndrewQuinn超过 1 年前
Atuin is great! Considering including it in my little stack of scripts to turn a new Ubuntu VM into a capable devbox from scratch [1].<p>We currently install `fzf` with the proper keybindings, so Ctrl-R is already quite nice. But we also already include one interactive &quot;pick your $EDITOR&quot; moment - there&#x27;s no reason we couldn&#x27;t provide a &quot;pick your $HISTORIAN&quot; with atuin vs fzf as well. It would be fun and might turn people onto new tools, which is a big aim of this project.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;hiAndrewQuinn&#x2F;shell-bling-ubuntu">https:&#x2F;&#x2F;github.com&#x2F;hiAndrewQuinn&#x2F;shell-bling-ubuntu</a>
veganjay超过 1 年前
Previous announcement by the author:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35839470">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35839470</a>
qmsdfjkc超过 1 年前
I&#x27;ve been using a combination of git (append only when merging) and systemd for that for a long time now, my history file is 70k lines now and still works like a charm.<p>I wonder however how people can spend a lot of time in the shell and have no sync process at all in their shell history.
lobocinza超过 1 年前
It looks cool and are good to have features but I don&#x27;t think it justifies the tinkering, syncing to server and eventual problems. Would it slow down my shell? Ctrl-r + FZF is already good.
renewiltord超过 1 年前
I used to have histdb set up really well with r-i-search etc. but recently I can&#x27;t get it to really do that any more. It&#x27;s a pity. Does anyone have a histdb + fzf r-i-search solution that works well for them?
heavyset_go超过 1 年前
In the docs it says:<p><pre><code> Atuin works best in bash when using ble.sh. </code></pre> However, whenever I try to use it with ble.sh, it doesn&#x27;t bind to the up key like it does with plain Bash.
brianzelip超过 1 年前
Good recent podcast with the Atuin author! <a href="https:&#x2F;&#x2F;changelog.com&#x2F;podcast&#x2F;579" rel="nofollow">https:&#x2F;&#x2F;changelog.com&#x2F;podcast&#x2F;579</a>
xnx超过 1 年前
Previously 10 months ago. 183 comments. <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35839470">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35839470</a>
jes超过 1 年前
Looks neat and I&#x27;d like to try it. I wonder how well it would work from within a GNU Emacs shell buffer (comint based, I think) running bash. Has anyone given this a shot?
评论 #39464434 未加载
Hugsun超过 1 年前
I just started using this tool locally and it&#x27;s pretty nice. The default UI doesn&#x27;t highlight the matching substring like fzf does which isn&#x27;t as nice.
ThinkBeat超过 1 年前
I see good value in the sync.<p>But since I use different flavors of UNIX and Linux some of the commands are different.<p>I think it could get confusing.<p>Obviously you could just not synch between platofrms
评论 #39469003 未加载
eviks超过 1 年前
Can it do the magic of deduplication, cleaning failed commands with typos so your history isn&#x27;t cluttered, and use frecency for autocompletions?
评论 #39466895 未加载
评论 #39502902 未加载
评论 #39464044 未加载
v3ss0n超过 1 年前
Resh is a lot faster and lightweight.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;curusarn&#x2F;resh">https:&#x2F;&#x2F;github.com&#x2F;curusarn&#x2F;resh</a>
tnorthcutt超过 1 年前
Atuin is simply fantastic. Ellie keeps adding interesting new features. Just an all around fantastically useful tool. Bravo.
metadaemon超过 1 年前
Used as a daily driver for a couple years now. Love it!!
vander_elst超过 1 年前
atuin is nice, but the search functionality is not on par with fzf, I found myself several times going `cat ~&#x2F;.zsh_history | fzf`
jauntywundrkind超过 1 年前
Please oh please, can someone hack a way to get shell history expansion!? The most objectionable thing about shell history to me is that it&#x27;s not what I typed!<p>Mainly a zsh user &amp; I&#x27;ve looked up &amp; down &amp; all around, but I cannot find a way to keep track of what I actually typed, versus what got ran! I really want to better be able to identify patterns, look at what I was typing. Show me !-1$, the last word of the last command!<p>I need this to learn &amp; improve my expansion capabilities better. I need this to see how my history evolved, to backtrack &amp; see where else any given line was pointing at. Shell history feels devoid of the most important context I craft; I summon birds from hats and my shell history just says: there was a bird here. Hiss boo.
Razengan超过 1 年前
+1 for the name
givemeethekeys超过 1 年前
Anyone try this and fish shell? How do they compare? Thanks!
评论 #39462040 未加载
评论 #39462798 未加载
评论 #39462703 未加载
评论 #39464636 未加载
chanbam超过 1 年前
just commenting for my discworld homies
评论 #39461607 未加载