feat: add tpm for tmux

This commit is contained in:
2024-06-19 12:22:18 +08:00
parent d97fb14d1f
commit 785d8bde8c
4 changed files with 32 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
#/bin/bash
echo 'Init tmux config'
src=$HOME/.tmux.conf
if [ -e $src ]; then
mv $src $src.bak
fi
ln -s $HOME/.dotfile/tmux/.tmux.conf $src
echo 'Install tpm'
if [ ! -e ~/.tmux/plugins/tpm ]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
echo 'Install tmux plugin by tpm'
$HOME/.tmux/plugins/tpm/bin/install_plugins
echo 'Reload tmux'
tmux source ~/.tmux.conf