Is it possible to run two different versions of tmux at the same time?

Tmux 1.8 disables the iOS Prompt app.

But I need 1.8 to get iTerm2 integration.

So, I hope that I can somehow get my server to start two tmux servers. However, it seems that Tmux 1.6 just exits with status 1 when I have 1.8 server running.

I doubt anyone tried something like this, but I'm curious ...

+5
source share
1 answer

You can run multiple instances of tmux (even different versions), but it may not work as you expect: they will be completely independent (different sessions, windows, panels, parameter values, etc.). The -Lor option is -Sused to specify the name or name of the server socket.

tmux new              # new session in the server at the "default" socket
tmux -L other attach  # new session in the server at the "other" socket

-L $TMPDIR/tmux-$UID/, -S, .

"" tmux, TMUX , (), "" : tmux neww ( , ).

tmux. tmux " ". - 1.6 1.8 . , 1.6, 1.8 (.. 1.8) . , ( "" ), , , .

tmux attach               # 1.8 talking to existing 1.8 "default" server
tmux-1.6 -L other attach  # 1.6 talking to existing 1.6 "other" server

, , ( script, , ).

tmux() { command "${TMUXBIN:-tmux}" "$@"; }
+10

All Articles