tmux-sessionist
tmux-sessionist copied to clipboard
can't find session error when destroy-unattached is on
~/.tmux/plugins/tmux-sessionist/scripts/new_session.sh "foo" is always returning can't find session foo for me.
my sole suspicion is that the command TMUX="" tmux -S "$(tmux_socket)" new-session -d -s "$SESSION_NAME" shouldn't be doing the expected thing here.
I'm able to create new sessions through <prefix>:new-session -s sessionName, but I can't create them using the tmux command because of the nested session issue. So this is how I create them without nested session issues, still, it looks like tmux sessionist relies on creating sessions like trying to nest them I guess? I still can't use sessionist from inside tmux, still same errors.
Reference about this mechanism: http://stackoverflow.com/a/25433189/100028
This is related with https://github.com/tony/tmuxp/issues/176 where the issue lies on using set -g destroy-unattached on. Sessionist is working for me now. I'll leave this open at the choice of the project owner to close it or not. At the tmuxp issue it's discussed solutions for still supporting set -g destroy-unattached on.