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 quit my job to work full time on my open source project
31–40 of 190 posts
Re: I quit my job to work full time on my open source project
#32I 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.
Re: I quit my job to work full time on my open source project
#33Re: I quit my job to work full time on my open source project
#34Re: I quit my job to work full time on my open source project
#35Re: I quit my job to work full time on my open source project
#36I 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.
History is useful enough to exist as a feature, I up-arrow routinely, but it doesn't actually matter when it doesn't exist.
I find the idea of going out of your way to preserve and migrate years of shell history and make it searchable in a db about like:
You have a problem that water is flooding your kitchen floor. Normally you deal with a spill with a mop or towels. There is now too much water and so you decide that your normal towels aren't good enough and so you get more & better towels, or even put a sump pump in the corner to keep pumping all this water away.
I've written a lot of complicated pipelines and awk and sed etc, but they were either one-offs that are of hardly any value later, or I made a script, and the few things that are neither of those, are so few they automatically don't matter because they are few.
It's not illegal or immoral, just goofy.
Re: I quit my job to work full time on my open source project
#37Re: I quit my job to work full time on my open source project
#38What is the security of this? 1. If someone steals my laptop & breaks in, can they get access to all my history 2. After breaking, if they run `atuin key` will get them the key for my history which they can use from any device (if they know the userid) 3. If you are running servers passing passwords as command line arguments in that device, they have all that.
Re: I quit my job to work full time on my open source project
#39Earlier quoted context omitted.
5 a month with 1,000 users is 5,000 a month. You add in the costs and taxes and you are left with supporting a thousand users that you can't afford to hire for. If you had 2,000 users you might be able to afford someone but now you have to support 2,000 users. If prices were tripled you could afford to staff for now and the future (r/d). When small you need to go higher. When you are big you can use size to scale.
$5 a month, the only support you get is the ability to cancel :-). However I kind of agree, given that this has sensitive data perhaps, so customers might get annoying about that, charge a bit more.
Like absolutely you want to accept bug reports and feedback, but your users should not expect active help with normal usage.
Re: I quit my job to work full time on my open source project
#40Has anyone who uses fish shell compared that to Atuin? I suspect that having my entire shell history accessible might not really be necessary.
Multi device sync is not there without some effort but I don’t really care to mix my personal history with my work machines anyway.