add tmux-resurrect plugin
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
*.sublime-workspace
|
*.sublime-workspace
|
||||||
/.config/mc/hotlist
|
/.config/mc/hotlist
|
||||||
|
/.tmux/resurrect
|
||||||
/.vim/.netrwhist
|
/.vim/.netrwhist
|
||||||
/tmux.start.sh
|
/tmux.start.sh
|
||||||
|
|||||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -19,3 +19,6 @@
|
|||||||
[submodule ".vim/bundle/vim-fugitive"]
|
[submodule ".vim/bundle/vim-fugitive"]
|
||||||
path = .vim/bundle/vim-fugitive
|
path = .vim/bundle/vim-fugitive
|
||||||
url = https://github.com/tpope/vim-fugitive.git
|
url = https://github.com/tpope/vim-fugitive.git
|
||||||
|
[submodule ".tmux/plugins/tmux-resurrect"]
|
||||||
|
path = .tmux/plugins/tmux-resurrect
|
||||||
|
url = https://github.com/tmux-plugins/tmux-resurrect.git
|
||||||
|
|||||||
11
.tmux.conf
11
.tmux.conf
@@ -164,3 +164,14 @@ set -g @copycat_search_C-f "(^|^\.|[[:space:]]|[[:space:]]\.|[[:space:]]\.\.|^\.
|
|||||||
set -g @copycat_search_C-u "(https?://|git@|git://|ssh://|ftp://|file:///)[[:alnum:]?=%/_.:,;~@!#$&()*+-]*"
|
set -g @copycat_search_C-u "(https?://|git@|git://|ssh://|ftp://|file:///)[[:alnum:]?=%/_.:,;~@!#$&()*+-]*"
|
||||||
set -g @copycat_search_M-h "\b[0-9a-f]{7,40}\b"
|
set -g @copycat_search_M-h "\b[0-9a-f]{7,40}\b"
|
||||||
set -g @copycat_search_M-i "[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}"
|
set -g @copycat_search_M-i "[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}"
|
||||||
|
|
||||||
|
# tmux-resurrect (https://github.com/tmux-plugins/tmux-resurrect)
|
||||||
|
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
|
||||||
|
set -g @resurrect-save 'a'
|
||||||
|
set -g @resurrect-restore 'A'
|
||||||
|
|
||||||
|
set -g @resurrect-strategy-vim 'session' # save vim sessions (may require the tpope/vim-obsession plugin)
|
||||||
|
set -g @resurrect-strategy-nvim 'session' # save neovim sessions (may require the tpope/vim-obsession plugin)
|
||||||
|
set -g @resurrect-capture-pane-contents 'on' # save pane contents
|
||||||
|
set -g @continuum-restore 'on' # restore session on tmux start
|
||||||
|
set -g @continuum-save-interval '5' # save session every 5 minutes (default is 15)
|
||||||
|
|||||||
1
.tmux/plugins/tmux-resurrect
Submodule
1
.tmux/plugins/tmux-resurrect
Submodule
Submodule .tmux/plugins/tmux-resurrect added at b8cc90a7f4
Reference in New Issue
Block a user