tmux-resurrect: Restore not starting processes

When doing prefix C-r, the windows and panes open correctly, and pane contents are there, but the commands aren’t restarted, even though I spelled out that I want “tail” in the @resurrect-processes option.

I use zsh as my shell, if that matters.

.tmux.conf (removed key bindings):

#set status-utf8 on
#set utf8 on

set -g default-terminal "screen-256color"

source-file ~/.codisms/repos/solarized/tmux/tmuxcolors-256.conf

#set -g default-command "reattach-to-user-namespace -l $SHELL"

# plugin settings
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-save-interval '15'
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-processes 'vim man less tail more htop top mutt elinks'

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

run '~/.tmux/plugins/tpm/tpm'

Latest stored state:

pane    default 1   :editor 0   :   1   :/root/Veritone/node/datacenter 1   zsh :
pane    default 1   :editor 0   :   2   :/root/Veritone/node/core-recording-server  0   vim :vim /root/.ssh/config
pane    default 1   :editor 0   :   3   :/root/.codisms/bin 0   zsh :
pane    default 1   :editor 0   :   4   :/root/go/src/github.com/veritone/youtube-ripper    0   zsh :
pane    default 2   :db 0   :   1   :/root  1   vim :vim -S /root/.codisms/vim/vimrc.db
pane    default 3   :po 0   :-  1   :/root/Thotspots/Payoff 0   top :top
pane    default 3   :po 0   :-  2   :/root/Thotspots/Payoff/savings_rails_demo/app/assets/templates 0   htop    :htop
pane    default 3   :po 0   :-  3   :/root/Thotspots/Payoff/savings_rails_demo/log  0   tail    :tail -f development.log
pane    default 3   :po 0   :-  4   :/root/Thotspots/Payoff/savings_api/log 0   tail    :tail -f development.log
pane    default 3   :po 0   :-  5   :/root/Thotspots/Payoff/savings_jobs/log    1   tail    :tail -f development.log
pane    default 4   :setup  0   :   1   :/root/.setup/linux 0   zsh :
pane    default 4   :setup  0   :   2   :/etc/systemd/system    0   zsh :
pane    default 4   :setup  0   :   3   :/var/log   1   zsh :
pane    default 5   :zsh    1   :*  1   :/root/.codisms/tmux/resurrect  1   zsh :
window  default 1   0   :   0f69,171x48,0,0{85x48,0,0,2,85x48,86,0[85x13,86,0,3,85x17,86,14,4,85x16,86,32,5]}
window  default 2   0   :   ccc3,171x48,0,0,6
window  default 3   0   :-  5050,171x48,0,0{85x48,0,0[85x22,0,0,7,85x25,0,23,8],85x48,86,0[85x16,86,0,9,85x16,86,17,10,85x14,86,34,11]}
window  default 4   0   :   e6a1,171x48,0,0[171x24,0,0,12,171x23,0,25{85x23,0,25,13,85x23,86,25,14}]
window  default 5   1   :*  6697,171x48,0,0,18
state   default

default-command:

[~] » tmux show -g default-command
default-command ""

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Comments: 19 (1 by maintainers)

Most upvoted comments

I found a fix. If I specify the entire session/window/pane on the command line, like so: tmux send-keys -t "${session_name}:${window_number}.$pane_index"