Skip to content

Commit 0f0ec12

Browse files
authored
Merge pull request #308 from tmux-plugins/deprecate_restoring_shell_history
Deprecate restoring shell history
2 parents e3f05dd + d782568 commit 0f0ec12

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- delete resurrect files older than 30 days, but keep at least 5 files
2525
- add save and restore hooks
2626
- always use `-ao` flags for `ps` command to detect commands
27+
- Deprecate restoring shell history feature.
2728

2829
### v2.4.0, 2015-02-23
2930
- add "tmux-test"

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ Optional:
4949

5050
- [restoring vim and neovim sessions](docs/restoring_vim_and_neovim_sessions.md)
5151
- [restoring pane contents](docs/restoring_pane_contents.md)
52-
- [restoring shell history](docs/restoring_shell_history.md) (experimental)
5352

5453
Requirements / dependencies: `tmux 1.9` or higher, `bash`.
5554

docs/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Currently the following hooks are supported:
2020

2121
Called before any tmux state is altered.
2222

23-
- `@resurrect-hook-pre-restore-history`
23+
- `@resurrect-hook-pre-restore-history` - deprecated
2424

2525
Called after panes and layout have been restores, but before bash history is
2626
restored (if it is enabled) -- the hook is always called even if history

docs/restoring_shell_history.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Restoring shell history (experimental)
1+
# Restoring shell history (deprecated, do not use)
2+
3+
This feature is deprecated because it's very invasive. It will be removed in
4+
the future with no replacement. To see problems it causes check
5+
[this issue](https://github.com/tmux-plugins/tmux-resurrect/issues/288).
26

37
**Supported shells**: `bash` and `zsh`.
48

scripts/variables.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pane_contents_area_option="@resurrect-pane-contents-area"
3838
default_pane_contents_area="full"
3939

4040
bash_history_option="@resurrect-save-bash-history" # deprecated
41-
shell_history_option="@resurrect-save-shell-history"
41+
shell_history_option="@resurrect-save-shell-history" # deprecated
4242

4343
# set to 'on' to ensure panes are never ever overwritten
4444
overwrite_option="@resurrect-never-overwrite"

0 commit comments

Comments
 (0)