Rename the plugin to 'tmux-continuum'

This commit is contained in:
Bruno Sutic 2015-02-20 13:38:09 +01:00
parent 7f0e7268a6
commit 20a83738c0
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
7 changed files with 24 additions and 23 deletions

View File

@ -1,6 +1,7 @@
# Changelog # Changelog
### master ### master
- rename the plugin from `tmux-resurrect-auto` to `tmux-continuum`
### v2.2.0, 2015-02-20 ### v2.2.0, 2015-02-20
- document tmux multi-server behavior in the readme - document tmux multi-server behavior in the readme

View File

@ -1,4 +1,4 @@
# tmux-resurrect-auto # tmux-continuum
Features: Features:
@ -28,7 +28,7 @@ enable this for your system.
Last saved environment is automatically restored when tmux is started. Last saved environment is automatically restored when tmux is started.
Put `set -g @resurrect-auto-restore 'on'` in `tmux.conf` to enable this. Put `set -g @continuum-restore 'on'` in `tmux.conf` to enable this.
Note: automatic restore happens **exclusively** on tmux server start. No other Note: automatic restore happens **exclusively** on tmux server start. No other
action (e.g. sourcing `tmux.conf`) triggers this. action (e.g. sourcing `tmux.conf`) triggers this.
@ -49,7 +49,7 @@ Add plugin to the list of TPM plugins in `.tmux.conf`:
set -g @tpm_plugins ' \ set -g @tpm_plugins ' \
tmux-plugins/tpm \ tmux-plugins/tpm \
tmux-plugins/tmux-resurrect \ tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-resurrect-auto \ tmux-plugins/tmux-continuum \
' '
Hit `prefix + I` to fetch the plugin and source it. The plugin will Hit `prefix + I` to fetch the plugin and source it. The plugin will
@ -63,11 +63,11 @@ of Feb 2015).
Clone the repo: Clone the repo:
$ git clone https://github.com/tmux-plugins/tmux-resurrect-auto ~/clone/path $ git clone https://github.com/tmux-plugins/tmux-continuum ~/clone/path
Add this line to the bottom of `.tmux.conf`: Add this line to the bottom of `.tmux.conf`:
run-shell ~/clone/path/resurrect_auto.tmux run-shell ~/clone/path/continuum.tmux
Reload TMUX environment: Reload TMUX environment:
@ -96,7 +96,7 @@ Here are the steps to restore to a previous point in time:
- `$ cd ~/.tmux/resurrect/` - `$ cd ~/.tmux/resurrect/`
- locate the save file you'd like to use for restore (file names have a timestamp) - locate the save file you'd like to use for restore (file names have a timestamp)
- symlink the `last` file to the desired save file: `$ ln -sf <file_name> last` - symlink the `last` file to the desired save file: `$ ln -sf <file_name> last`
- do a restore with `tmux-resurrect` binding: `prefix + Ctrl-r` - do a restore with `tmux-resurrect` key: `prefix + Ctrl-r`
You should now be restored to the time when `<file_name>` save happened. You should now be restored to the time when `<file_name>` save happened.
@ -111,7 +111,7 @@ time to time.
The interval is always measured in minutes. So setting the interval to `60` The interval is always measured in minutes. So setting the interval to `60`
(minutes) will do the trick. Put this in `.tmux.conf`: (minutes) will do the trick. Put this in `.tmux.conf`:
set -g @resurrect-auto-save-interval '60' set -g @continuum-save-interval '60'
and then source `tmux.conf` by executing this command in the shell and then source `tmux.conf` by executing this command in the shell
`$ tmux source-file ~/.tmux.conf`. `$ tmux source-file ~/.tmux.conf`.
@ -120,14 +120,14 @@ and then source `tmux.conf` by executing this command in the shell
Just set the save interval to `0`. Put this in `.tmux.conf` Just set the save interval to `0`. Put this in `.tmux.conf`
set -g @resurrect-auto-save-interval '0' set -g @continuum-save-interval '0'
and then source `tmux.conf` by executing this command in the shell and then source `tmux.conf` by executing this command in the shell
`$ tmux source-file ~/.tmux.conf`. `$ tmux source-file ~/.tmux.conf`.
> I had automatic restore turned on, how do I disable it now? > I had automatic restore turned on, how do I disable it now?
Just remove `set -g @resurrect-auto-restore 'on'` from `tmux.conf`. Just remove `set -g @continuum-restore 'on'` from `tmux.conf`.
To be absolutely sure automatic restore doesn't happen, create a To be absolutely sure automatic restore doesn't happen, create a
`tmux_no_auto_restore` file in your home directory (command: `tmux_no_auto_restore` file in your home directory (command:

View File

@ -6,7 +6,7 @@ source "$CURRENT_DIR/scripts/helpers.sh"
source "$CURRENT_DIR/scripts/variables.sh" source "$CURRENT_DIR/scripts/variables.sh"
source "$CURRENT_DIR/scripts/shared.sh" source "$CURRENT_DIR/scripts/shared.sh"
save_command_interpolation="#($CURRENT_DIR/scripts/resurrect_auto_save.sh)" save_command_interpolation="#($CURRENT_DIR/scripts/continuum_save.sh)"
supported_tmux_version_ok() { supported_tmux_version_ok() {
$CURRENT_DIR/scripts/check_tmux_version.sh "$SUPPORTED_VERSION" $CURRENT_DIR/scripts/check_tmux_version.sh "$SUPPORTED_VERSION"
@ -49,7 +49,7 @@ just_started_tmux_server() {
} }
start_auto_restore_in_background() { start_auto_restore_in_background() {
$CURRENT_DIR/scripts/resurrect_auto_restore.sh & $CURRENT_DIR/scripts/continuum_restore.sh &
} }
main() { main() {

View File

@ -5,7 +5,7 @@ Tmux is automatically started after the computer/server is turned on.
### OS X ### OS X
To enable this feature: To enable this feature:
- put `set -g @resurrect-auto-tmux-start 'on'` in `tmux.conf` - put `set -g @continuum-boot '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: Next time the computer is started:
@ -14,11 +14,11 @@ Next time the computer is started:
- if "auto restore" feature is enabled, tmux will start restoring previous env - if "auto restore" feature is enabled, tmux will start restoring previous env
Config options: Config options:
- `set -g @resurrect-auto-tmux-start-options 'fullscreen'` - terminal window - `set -g @continuum-boot-options 'fullscreen'` - terminal window
will go fullscreen will go fullscreen
- `set -g @resurrect-auto-tmux-start-options 'iterm'` - start `iTerm` instead - `set -g @continuum-boot-options 'iterm'` - start `iTerm` instead
of `Terminal.app` of `Terminal.app`
- `set -g @resurrect-auto-tmux-start-options 'iterm,fullscreen'` - start `iTerm` - `set -g @continuum-boot-options 'iterm,fullscreen'` - start `iTerm`
in fullscreen in fullscreen
### Linux ### Linux

View File

@ -4,23 +4,23 @@ SUPPORTED_VERSION="1.9"
resurrect_save_path_option="@resurrect-save-script-path" resurrect_save_path_option="@resurrect-save-script-path"
resurrect_restore_path_option="@resurrect-restore-script-path" resurrect_restore_path_option="@resurrect-restore-script-path"
auto_save_interval_option="@continuum-save-interval"
auto_save_interval_default="15" auto_save_interval_default="15"
auto_save_interval_option="@resurrect-auto-save-interval"
# time when the tmux environment was last saved (unix timestamp) # time when the tmux environment was last saved (unix timestamp)
last_auto_save_option="@resurrect-auto-save-last-timestamp" last_auto_save_option="@continuum-save-last-timestamp"
auto_restore_option="@resurrect-auto-restore" auto_restore_option="@continuum-restore"
auto_restore_default="off" auto_restore_default="off"
auto_restore_halt_file="${HOME}/tmux_no_auto_restore" auto_restore_halt_file="${HOME}/tmux_no_auto_restore"
# tmux auto start options # tmux auto start options
auto_start_option="@resurrect-auto-tmux-start" auto_start_option="@continuum-boot"
auto_start_default="off" auto_start_default="off"
# comma separated list of additional options for tmux auto start # comma separated list of additional options for tmux auto start
auto_start_config_option="@resurrect-auto-tmux-start-options" auto_start_config_option="@continuum-boot-options"
auto_start_config_default="" auto_start_config_default=""
osx_auto_start_file_name="Tmux.Start.plist" osx_auto_start_file_name="Tmux.Start.plist"