Comments (6)
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.
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.
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.
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.
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.
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)
- Issue while starting via shell configuration in Alacritty
- add option for working on multiple tmux server
- macOS Ventura: "Background Item Added" notification on each boot HOT 6
- Autostart session with a specific name?
- Customise status with time remaining HOT 4
- Systemd user service disabled even if not managed by continuum
- Restore to named session if name provided
- Programs are not restarting
- High CPU usage on MacOS after long sleep/hibernate time HOT 2
- Hardcoded DISPLAY Variable Issues
- XAUTHORITY environment variable is not set when using automatic tmux start with systemd HOT 2
- How to restore multiple tmux sessions independently and simultaneously
- Disable auto save before manual save session
- Warp terminal automatic startup script
- Auto-save on exit
- Save file is not created after timeout HOT 3
- Wezterm automatic startup script
- tmux-continuum doesn't work when .tmux.conf is a symbolic link in WSL 2 HOT 3
- tmux unresponsive for 15 - 30 seconds, during continuum saves
- @continuum-boot 'on' causes @continuum-restore 'on' to restore only one session
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-continuum.