tmux-continuum icon indicating copy to clipboard operation
tmux-continuum copied to clipboard

Automatic tmux start and automatic restore not working in OSX

Open chamoda opened this issue 8 years ago • 9 comments

Automatic tmux start and automatic restore does not work in OSX

Here's the .tmux.conf

unbind C-b
set-option -g prefix C-a
bind C-a send-prefix

set -g mouse-utf8 on
set -g mouse on

set-option -g default-command "reattach-to-user-namespace -l zsh"

set -g terminal-overrides 'xterm*:smcup@:rmcup@'

set -g default-command "reattach-to-user-namespace -l /bin/zsh"

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'

# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'

set -g @continuum-restore 'on'
set -g @continuum-boot 'on'
set -g @continuum-boot-options 'iterm'

tmux 2.1 iTerm2 2.9.20160313 OSX 10.11.4

Automatic saving is working fine.

chamoda avatar Apr 28 '16 19:04 chamoda

Yes, i meet the same problem

Leeiio avatar May 21 '16 11:05 Leeiio

You can restore if you type prefix + Ctrl-R within 15 min of a tmux session start after restart. That's the workaround I'm using now

chamoda avatar May 21 '16 11:05 chamoda

@chamoda Yes, prefix + ctrl-r can restore but automatic restore not working :(

Leeiio avatar May 21 '16 11:05 Leeiio

It's always worked for me. Here's my config on OSX:

https://github.com/eduncan911/dotfiles/blob/master/.tmux.conf

set -g @continuum-save-interval '15'
set -g @continuum-restore 'on'
run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux

Note that i set the options first below I run the shell command. I found this was the only way to get the plugin to read the settings.

Also note that the auto-save never worked for me. I just have to remember to <prefix>-CTRL-R before rebooting.

Note that this was the case until today, when I updated tmux to latest via Homebrew. Now my tmux crashes with lost server, and it is because of this plugin (i am creating another issue for it).

eduncan911 avatar Jun 13 '16 17:06 eduncan911

I have the same issue when I put the options BELOW the run-shell command. I have the lost server issue if I put the options ABOVE the run-shell command.

MareoRaft avatar Jun 20 '16 21:06 MareoRaft

Sorry for the late reply everyone.

@chamoda , as for your .tmux.conf file in this post, please ensure this line run '~/.tmux/plugins/tpm/tpm' is the last line in your .tmux.conf.

Everything else looks ok but we might have other bugs tho. My terminal of choice is Terminal.app and this one should work.

bruno- avatar Oct 08 '17 21:10 bruno-

@eduncan911 , I checked your .tmux.conf from this post and it looks ok. Given that you're not using tpm, then yes, you have to run the plugins manually with run-shell ...

bruno- avatar Oct 08 '17 21:10 bruno-

I'm not sure what's causing the lost server error ..

bruno- avatar Oct 08 '17 21:10 bruno-

Maybe related https://github.com/tmux-plugins/tmux-continuum/issues/52#issuecomment-44507

rofrol avatar Dec 21 '18 10:12 rofrol