mv docs/restoring_{bash,shell}_history.md and update the doc

Signed-off-by: Mohammad Alsaleh <CE.Mohammad.AlSaleh@gmail.com>
pull/151/merge
Mohammad Alsaleh 2015-09-16 19:12:27 +03:00 committed by Bruno Sutic
parent 2c9cc224c0
commit bf07546645
No known key found for this signature in database
GPG Key ID: CAFA7B1B2914ED81
3 changed files with 21 additions and 14 deletions

View File

@ -49,7 +49,7 @@ Optional:
- [restoring vim and neovim sessions](docs/restoring_vim_and_neovim_sessions.md)
- [restoring pane contents](docs/restoring_pane_contents.md)
- [restoring bash history](docs/restoring_bash_history.md) (experimental)
- [restoring shell history](docs/restoring_shell_history.md) (experimental)
Requirements / dependencies: `tmux 1.9` or higher, `bash`.
@ -105,7 +105,7 @@ You should now be able to use the plugin.
**Experimental features (also optional)**
- [restoring bash history](docs/restoring_bash_history.md)
- [restoring shell history](docs/restoring_shell_history.md)
### Other goodies

View File

@ -1,12 +0,0 @@
# Restoring bash history (experimental)
Enable feature with this option in `.tmux.conf`:
set -g @resurrect-save-bash-history 'on'
Bash `history` for individual panes will now be saved and restored. Due to
technical limitations, this only works for panes which have no program running
in foreground when saving. `tmux-resurrect` will send history write command to
each such pane. To prevent these commands from being added to history
themselves, add `HISTCONTROL=ignoreboth` to your `.bashrc`
(this is set by default in Ubuntu).

View File

@ -0,0 +1,19 @@
# Restoring shell history (experimental)
**Supported shells**: `bash` and `zsh`.
Enable feature with this option in `.tmux.conf`:
set -g @resurrect-save-shell-history 'on'
**Note**: the older `@resurrect-save-bash-history` is now an alias to
`@resurrect-save-shell-history`.
Shell `history` for individual panes will now be saved and restored. Due to
technical limitations, this only works for panes which have no program running
in foreground when saving. `tmux-resurrect` will send history write command to
each such pane.
To prevent these commands from being added to `bash` history
themselves, add `HISTCONTROL=ignoreboth` to your `.bashrc`
(this is set by default in Ubuntu).