I’ve used distrobox more and more and am at the point where I need to start saving and integrating history differently. Or like, when I’m installing and building something complicated, I need to start saving that specific session’s history. I am curious what others might be doing and looking for simple advice and ideas.

  • @[email protected]
    link
    fedilink
    English
    81 month ago

    I think this is the only change I’ve made that affects my history… It simply ignores multiple copies of a command when you repeat it multiple times, making it easier to up-arrow through the unique things I’ve executed.

    export HISTCONTROL=ignoredups

    • @[email protected]
      link
      fedilink
      English
      31 month ago

      I was originally worried this would dedupe the entire history file, eliminating occasionally useful historical context. Apparently from what I’ve read, it only compares it to the most recent entry in the history file. Might have to include this one too. Thanks

      • @[email protected]
        link
        fedilink
        English
        01 month ago

        I only include it because pretty much every guide on zfs setups recommends disabling it these days. I don’t believe it’s anything I’ve every had to use despite several drive crashes over the years.

          • @[email protected]
            link
            fedilink
            English
            11 month ago

            Heh sorry about that. There’s also a zfs conversation going on where I had suggested disabling the ‘dedup’ option. I’ve never heard of dedupe being used in the context of the shell history, so yeah, I got confused.