fix tmux-continuum, autostart tmux
This commit is contained in:
parent
dd94dacf6c
commit
597984968f
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Start tmux in detached session
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/bin/tmux new-session -s %u -d
|
||||||
|
ExecStop=/usr/bin/tmux kill-session -t %u
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -55,10 +55,10 @@ set -g status-right '#U@#H'
|
||||||
set -g @resurrect-capture-pane-contents 'on'
|
set -g @resurrect-capture-pane-contents 'on'
|
||||||
|
|
||||||
# Also resurect the vim session
|
# Also resurect the vim session
|
||||||
# for vim
|
set -g @resurrect-strategy-vim 'session' # for vim
|
||||||
set -g @resurrect-strategy-vim 'session'
|
set -g @resurrect-strategy-nvim 'session' # for neovim
|
||||||
# for neovim
|
# additional process to restore
|
||||||
set -g @resurrect-strategy-nvim 'session'
|
set -g @resurrect-processes 'ssh watch'
|
||||||
|
|
||||||
# Save every 5 minutes
|
# Save every 5 minutes
|
||||||
set -g @continuum-save-interval '5'
|
set -g @continuum-save-interval '5'
|
||||||
|
@ -72,7 +72,8 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
set -g @plugin 'soyuka/tmux-current-pane-hostname'
|
set -g @plugin 'soyuka/tmux-current-pane-hostname'
|
||||||
set -g @plugin 'christoomey/vim-tmux-navigator'
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
#set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||||
|
set -g @plugin 'git@github.com:badjware/tmux-continuum.git'
|
||||||
|
|
||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
run -b '~/.tmux/plugins/tpm/tpm'
|
run -b '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|
|
@ -3,5 +3,11 @@
|
||||||
# install vim plugins
|
# install vim plugins
|
||||||
vim -E +"call dein#update()" +"qall!" /dev/null &>/dev/null
|
vim -E +"call dein#update()" +"qall!" /dev/null &>/dev/null
|
||||||
|
|
||||||
systemctl --user enable mpv.service
|
# install tmux plugins
|
||||||
|
~/.tmux/plugins/tpm/bin/install_plugins
|
||||||
|
~/.tmux/plugins/tpm/bin/clean_plugins
|
||||||
|
|
||||||
|
systemctl --user daemon-reload
|
||||||
|
systemctl --user enable --now tmux.service
|
||||||
|
systemctl --user enable --now mpv.service
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue