Comments (24)
I think it was set -g @continuum-save-interval '5';
that made it tick
from tmux-continuum.
Did you try reloading tmux config file?
from tmux-continuum.
Yes, in fact I waited for a couple of days and rebooted a handful of times.
from tmux-continuum.
Can you please provide this info https://github.com/tmux-plugins/tmux-continuum/blob/master/CONTRIBUTING.md
from tmux-continuum.
from tmux-continuum.
Can you try moving run-shell
from here at the bottom of your tmux.conf
.
In general you want to run your plugin after the options are set. In this case @continuum-save-interval
is set after the plugin is run.
from tmux-continuum.
Looks like autosave works, thanks! However, continuum_status is still empty.
from tmux-continuum.
Variable is empty for me too
from tmux-continuum.
Empty for me as well
from tmux-continuum.
Same problem for me here!!! Any ideas???
from tmux-continuum.
When I run the status command manually on my mac I see:
~ → ~/.tmux/plugins/tmux-continuum/scripts/continuum_status.sh
/Users/clayreimann/.tmux/plugins/tmux-continuum/scripts/continuum_status.sh: line 12: [: -gt: unary operator expected
off
I don't know if this line is borked because I'm using the default save interval (and so have never explicitly set the interval).
Edit: the error went away when I set @continuum-save-interval
but that didn't fix the status bar.
from tmux-continuum.
Edit: Please don't tag me. I can't help with this any more than I already have.
Line 12 is:
if [ $save_int -gt 0 ]; then
That error indicates that $save_int
is unset when line 12 is reached.
It's set here, on line 9:
local save_int="$(get_tmux_option "$auto_save_interval_option")"
That explains why the error went away when you set @continuum-save-interval
. It seems that $auto_save_interval_option
needs to be populated with the default value in this script.
I don't have this error and I'm not sure why not. But try changing line 9 to this:
local save_int="$(get_tmux_option "${auto_save_interval_option:-15}")"
If that fixes it then a PR should be an easy fix.
from tmux-continuum.
Same issue for me as well! Has anyone found a solution yet? Setting @continuum-save-interval
removes the error from the script but the status still shows up empty. I'm on Mac 10.14.5 and tmux 2.9a.
from tmux-continuum.
@bestvibes Can you try the change I suggested in my comment above yours? I don't use this plugin anymore but if someone can confirm that it fixes the problem I will send a PR.
Edit: I'm not clear what you mean by this bit:
...the status still shows up empty.
Can you expand on that?
from tmux-continuum.
@rpdelaney I tried what you mentioned, and I had the same result as @clayreimann above your comment. The error went away when running the script and it just shows 15 now. However when I add the status to the status bar in tmux it still shows empty, even though the script returns 15. I hope that clarifies it! I can give more details tonight once I'm near my computer.
from tmux-continuum.
My #{continuum_status}
was off
even though I had this line in my .tmux.conf
:
set -g @continuum-restore 'on'
Then, I changed my .tmux.conf
to include this line:
set -g @continuum-save-interval 15
Finally, I ran tmux source ~/.tmux.conf
and the status changed to 15
instead of off
.
Now it looks like it is working:
$ ls -T ~/.tmux/resurrect/
~/.tmux/resurrect
├── last -> tmux_resurrect_20191009T110430.txt
├── pane_contents.tar.gz
├── save
│ └── pane_contents
└── tmux_resurrect_20191009T110430.txt
I'm using tmux 2.9a on macOS.
from tmux-continuum.
In addressing the empty status bar concern:
For manual installations of the tmux-continuum plugin, you need to make sure the run-shell
command is after any set -g
commands or the Continuum-status:
will be blank, presumably because the script will have run before those optional settings have been provided to it otherwise.
In essence:
`set -g @foo`
`set -g @bar`
`run-shell /path/to/tmux/continuum/continuum.tmux` #must be the last line for continuum portion of tmux config
from tmux-continuum.
Hi guys, same thing...
here is my tmux conf - https://github.com/alex-popov-tech/.dotfiles/blob/master/configs/tmux.conf
and i see empty continuum_status variable in status line, and automatic saving does NOT happens also :(
but if i will run mayually continuum_save.sh
or continuum_status.sh
they both works as expected (save session or show current status text)
Any ideas on that?
from tmux-continuum.
@bruno- any updates on that topic?
from tmux-continuum.
@alex-popov-tech The fix I described in my previous comment is still working for me. I'm not sure what else to suggest.
from tmux-continuum.
I put confg settings before @plugin
and it works.
set -g @continuum-restore 'on'
set -g @continuum-save-interval '1'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
Just try it. @slowkow @rpdelaney @alex-popov-tech
from tmux-continuum.
I don't have this error and I'm not sure why not.
Please don't tag me... I can't help with this any more than I already have.
from tmux-continuum.
Idk why it doesn't get sourced right, but this fixed it for me
# top of tmux.conf somewhere
# For some reason, the var doesn't get set normally for #{continuum_status}
run-shell "tmux setenv -g continuum_status $(~/.tmux/plugins/tmux-continuum/scripts/continuum_status.sh)
if-shell '[ $(echo "$TMUX_VERSION >= 1.9" | bc -l) == 1 ]' \
"\
set -g @continuum-save-interval '5'; \
set -g status-right 'Continuum status: #{continuum_status}'; \
set -g @plugin tmux-plugins/tpm; \
set -g @plugin tmux-plugins/tmux-logging; \
set -g @plugin tmux-plugins/tmux-resurrect; \
set -g @plugin tmux-plugins/tmux-continuum; \
set -g @continuum-restore 'on' \
"
And to someone's point above, yes, if you don't put the save/status first, you'll often get this instead:
$ tmux source ~/.tmux.conf
usage: set-option [-aFgosquw] [-t target-window] option [value]
from tmux-continuum.
I think it was
set -g @continuum-save-interval '5';
that made it tick
Same, need to specify the interval in the config file to start
the plugin
from tmux-continuum.
Related Issues (20)
- Add support for Wezterm terminal HOT 1
- iTerm2 launch in fullscreen mode
- 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
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.