Hacker News new | ask | show | jobs
by yjftsjthsd-h 495 days ago
That's how bash works for me, I believe by the combination of these in my .profile:

  shopt -s histappend
  PROMPT_COMMAND="history -a"
1 comments

I had something similar set up on my second to last work laptop. I had done some heavy customization that was mostly focused on common workflows for that job, but I have learned that I should still keep a backup even if most of it won't work elsewhere. I should have learned this lesson almost a couple decades ago when I lost all my emacs customizations on a personal computer. But instead, I decided to learn vim.