Live data from Hacker News

I quit my job to work full time on my open source project

ellie.wtf

161–170 of 190 posts

Re: I quit my job to work full time on my open source project

#161
post #150

I'm curious to hear what people's usecases are for retaining long shell history. For myself, I never really use it beyond the current work day (up arrow)

for work, there are a lot of commands with complex invocations that I do not use regularly enough to bother remembering all the flags. it is really useful to just grep through my full shell history to find all the times I ran that command and just copy/paste the relevant one.

I end up manually curating skeleton command lines in a text file - partly because I've never had functional full badh history

Re: I quit my job to work full time on my open source project

#162

I'm curious to hear what people's usecases are for retaining long shell history. For myself, I never really use it beyond the current work day (up arrow)

I definitely refer to months old command lines. I work on 10-15 projects ~2 are every day projects, ~6 every week projects, the rest every month or 2. I often recall commands I used on those month ago projects. I often remember the first few letters and press up arrow or I Ctrl-R for a part of the command-line I remember. I rarely have to dig out the docs to remember how to full type the line.

Re: I quit my job to work full time on my open source project

#163
post #150

Earlier quoted context omitted.

for work, there are a lot of commands with complex invocations that I do not use regularly enough to bother remembering all the flags. it is really useful to just grep through my full shell history to find all the times I ran that command and just copy/paste the relevant one.

I end up manually curating skeleton command lines in a text file - partly because I've never had functional full badh history

i shared my full-history script on here a while back and someone pointed me to atuin :) https://news.ycombinator.com/item?id=32477431

Re: I quit my job to work full time on my open source project

#164
post #57
post #34

Has anyone who uses fish shell compared that to Atuin? I suspect that having my entire shell history accessible might not really be necessary.

Fish has smoother usability, autocompletion and search. It is useful on fresh machine in vanilla configuration. Installing bash plugins is not always possible. Installing some sync plugin on sensitive server is nono! Also my biggest problem with bash, sometimes it does not keep part of recent history, if bash process gets killed. Fish does not have this problem. I usually keep useful commands in notes, and sync my no…

atuin does not sync by default (and in fact I have never used it with sync).

Re: I quit my job to work full time on my open source project

#166
post #34

Has anyone who uses fish shell compared that to Atuin? I suspect that having my entire shell history accessible might not really be necessary.

Was curious if a comment about fish would be here.

With fish's own autocomplete I get most of what I need. Add fzf to search the history (ctrl-r), and it's highly comparable to the post topic.

Re: I quit my job to work full time on my open source project

#167
post #73
post #17

I love the idea of Atuin but it's just way too slow with large history files. I've synced my history on my own for the past decade and have like 170k lines and the history search the ctrl-r search just crawls. I don't need most of the history, but there's 0 chance in hell I'm auditing that many lines to decide what I need and what I don't need.

> but it's just way too slow with large history files hey! what issues were you having here? slow to open or slow to search? we have a whole bunch of people with way more than 170k lines, so that shouldn't be happening :/

I’m self hosting my ATUIN server (although it is offsite so about 50 ms away), and have right at 100,000 items as shown by the command atuin status I don’t have any speed or lag issues, it comes up instantly and searches instantly. Fwiw.

I Love the project (will donate now, I remember when the project wasn’t taking donations, and I suggested they should) Thanks

Edit: I should add: I have the client on about 15 to 20 different VM‘s, all with various OSes and versions. The server part I’m running w docker (I think, via the exact steps suggested in the docs). All Works great in my use case, and I do have some very long and complex commands that it’s storing

Re: I quit my job to work full time on my open source project

#168
Not the amazing utility Atuin is .. but have been using this tiny bash script to manage named history files that i find pretty useful when juggling between projects. Have to try out Atuin and see if it is easier to use. .. sharing the gist .. https://gist.github.com/appsmatics/ff27e885460bd345eabe1c5f7...

Re: I quit my job to work full time on my open source project

#169

I keep my shell history in sqlite database since 2017. Around 120k records at this point. Never synced history from the work laptops. Only personal history. In 2017 wrote my own bash script (later optimized for zsh) to just record everything in sqlite with hooks on prompt. [1] I mostly work right now on Mac, don't need to support Linux anymore, so wrote an app for Mac, that syncs the history over iCloud, and has a GU…

Do you know any way to accomplish the same thing but keeping the history in plaintext? Would love to still be able to run SQL over it.

.. i replied to the main thread, if you want give my bash script a try. each project history is in its own named file .. https://gist.github.com/appsmatics/ff27e885460bd345eabe1c5f7...
Post reply on HN