Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Christian Salzmann-Jaeckel
tmux-continuum
Commits
e384ce10
Unverified
Commit
e384ce10
authored
Feb 20, 2015
by
Bruno Sutic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document tmux multi-server behavior in the readme
parent
c720876d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
8 deletions
+30
-8
CHANGELOG.md
CHANGELOG.md
+1
-0
README.md
README.md
+28
-7
scripts/handle_tmux_automatic_start/README.md
scripts/handle_tmux_automatic_start/README.md
+1
-1
No files found.
CHANGELOG.md
View file @
e384ce10
# Changelog
### master
-
document tmux multi-server behavior in the readme
-
do not auto-restore tmux environment if another tmux server is already running
(we don't want to duplicate stuff)
-
bugfixes for 'tmux auto start' OS X Terminal.app and iTerm scripts
...
...
README.md
View file @
e384ce10
...
...
@@ -3,12 +3,12 @@
Features:
-
continuous saving of tmux environment
-
automatic tmux start when computer/server is on
-
automatic tmux start when computer/server is
turned
on
-
automatic restore when tmux is started
These features enable uninterrupted tmux usage. No matter the computer
or server
restarts, if the machine is on, tmux will be there how you left it off
the last
time it was used.
T
ogether t
hese features enable uninterrupted tmux usage. No matter the computer
or server
restarts, if the machine is on, tmux will be there how you left it off
the last
time it was used.
#### Continuous saving
...
...
@@ -114,7 +114,7 @@ The interval is always measured in minutes. So setting the interval to `60`
set -g @resurrect-auto-save-interval '60'
and then source
`tmux.conf`
by executing this command in the shell
`tmux source ~/.tmux.conf`
.
`
$
tmux source
-file
~/.tmux.conf`
.
> How do I stop automatic saving?
...
...
@@ -123,7 +123,7 @@ Just set the save interval to `0`. Put this in `.tmux.conf`
set -g @resurrect-auto-save-interval '0'
and then source
`tmux.conf`
by executing this command in the shell
`tmux source ~/.tmux.conf`
.
`
$
tmux source
-file
~/.tmux.conf`
.
> I had automatic restore turned on, how do I disable it now?
...
...
@@ -131,9 +131,30 @@ Just remove `set -g @resurrect-auto-restore 'on'` from `tmux.conf`.
To be absolutely sure automatic restore doesn't happen, create a
`tmux_no_auto_restore`
file in your home directory (command:
`touch ~/tmux_no_auto_restore`
). Automatic restore won't happen if this file
`
$
touch ~/tmux_no_auto_restore`
). Automatic restore won't happen if this file
exists.
### 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.
### Other goodies
-
[
tmux-copycat
](
https://github.com/tmux-plugins/tmux-copycat
)
- a plugin for
...
...
scripts/handle_tmux_automatic_start/README.md
View file @
e384ce10
...
...
@@ -6,7 +6,7 @@ Tmux is automatically started after the computer/server is turned on.
To enable this feature:
-
put
`set -g @resurrect-auto-tmux-start 'on'`
in
`tmux.conf`
-
reload tmux config with this shell command:
`tmux source-file ~/.tmux.conf`
-
reload tmux config with this shell command:
`
$
tmux source-file ~/.tmux.conf`
Next time the computer is started:
-
`Terminal.app`
window will open and resize to maximum size
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment