pentest-distro-builder/filesystem/etc/skel/.tmux/plugins/tmux-continuum/docs/multiple_tmux_servers.md
Kaj Forney f7da7f3982 Move stuff to /etc/skel
Former-commit-id: d5258c85bc
Former-commit-id: aaf57e63c1976b3960fee717c68c3b09dc1a94ff
2018-10-18 13:47:28 -06:00

1,001 B

Behavior when running multiple tmux servers

(This is safe to skip if you're always running a single tmux server.)

If you're an advanced tmux user, you might be running multiple tmux servers at the same time. Maybe you start the first tmux server with $ tmux and then later another one with e.g. $ tmux -S/tmp/foo.

You probably don't want to "auto restore" the same environment in the second tmux that uses /tmp/foo socket. You also probably don't want two tmux environments both having "auto save" feature on (think about overwrites).

This plugin handles multi-server scenario by giving precedence to the tmux server that was first started.

In the above example, the server started with $ tmux will do "auto restore" (if enabled) and will start "auto saving". "Auto restore" or "auto saving" will not happen for the second server that was started later with the $ tmux -S/tmp/foo command. The plugin will detect the presence of another server ($ tmux) and give it precedence.