-
Notifications
You must be signed in to change notification settings - Fork 163
Autosave interrupts when I'm typing commands in bash #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey, When that feature is turned on, it does what you describe (inserts
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. |
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? |
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. |
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 |
Hey @davidjb, |
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. |
By storing history, it injects a command in our workflow and breaks what Im typing, which is annoying Also increased restore time to 30 minutes from 20. tmux-plugins/tmux-continuum#6
I've got continuum & resurrect installed in my tmux (version 1.9) and it's great (thanks!).
I've encountered an issue that if I'm typing a command and the save interval rolls around, my command is interrupted; with the
history -w ...
command being injected into the terminal. What I was typing is thus cut off, and I'm presented with an empty prompt.My settings are:
which I suppose means there's a chance every hour for this to happen, if I'm typing or have left a command waiting to be run on the terminal.
I'm using the latest version of the plugin from Git at time of writing and stock Bash on Ubuntu 15.04 as my shell.
The text was updated successfully, but these errors were encountered: