Coder Social home page Coder Social logo

Comments (6)

bruno- avatar bruno- commented on August 16, 2024

Hey,
do you by any chance have set -g @resurrect-save-bash-history 'on'? (an experimental feature from tmux-resurrect plugin)

When that feature is turned on, it does what you describe (inserts history -w..).
So, try fixing this by setting the save bash history feature to off. For example, just do

$ tmux set -g @resurrect-save-bash-history 'off'

in the terminal and the issue should not happen on next save cycle.

Frankly, I find the save bash history feature obnoxious and I'm even thinking of removing it from tmux-resurrect altogether.

from tmux-continuum.

davidjb avatar davidjb commented on August 16, 2024

Yes, sorry forgot to mention that option's enabled. I was slightly dubious about not having the history saved, but on balance, my tmux session and computer rarely get restarted anyway so turning this off won't be as big an issue as I'd first thought.

Out of interest, why do you consider the history feature obnoxious?

from tmux-continuum.

bruno- avatar bruno- commented on August 16, 2024

Hey, okay cool!

I dislike the history feature because it's not clean. In both the save and restore steps it sends commands to the working panes (what you experienced). This changes what the user sees and interrupts the workflow. From what I know no other option is that intrusive.

But hey, maybe it's just me.

from tmux-continuum.

davidjb avatar davidjb commented on August 16, 2024

I very much agree; I could accept the occasional interjection of the save/restore commands as a once off but on a repeated basis, it's a real pain.

Could you do something like changing Bash's $PROMPT_COMMAND to save after each command into the pane history file? Or perhaps manipulate Bash's $HISTFILE (on shell startup) to point the specific file for each pane? Not sure manipulating environment variables like this is feasible in tmux, but changing the .bashrc to reference a tmux-specific function would seemingly be an option.

from tmux-continuum.

bruno- avatar bruno- commented on August 16, 2024

Hey @davidjb,
I'd accept a pull request to tmux-resurrect that improves the "quality" of this feature..
I personally don't feel very motivated to work on this as I don't use the feature. If there's help needed I'll be glad to help though.

from tmux-continuum.

bruno- avatar bruno- commented on August 16, 2024

We have this issue logged in tmux-resurrect. As this issue is more related to that project, I'll leave that one open and close this.

from tmux-continuum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.