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.

  • Shdwdrgn
    link
    fedilink
    English
    arrow-up
    8
    ·
    6 months 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

    • treadful@lemmy.zip
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 months 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

      • Shdwdrgn
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        2
        ·
        6 months 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.

          • Shdwdrgn
            link
            fedilink
            English
            arrow-up
            1
            ·
            6 months 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.