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.

  • treadful@lemmy.zip
    link
    fedilink
    English
    arrow-up
    6
    ·
    5 months ago
    HISTSIZE=50000
    HISTFILESIZE=200000
    # Append history after every command
    export PROMPT_COMMAND='history -a'
    

    I can’t count on how many times in the past that I’ve had long running systems crash or OOM kill basically everything and I just lose my entire history for the week. Now I’m free to overtax my system as much as I want.