my tmux configuration
apt
sudo apt install tmux
yay
yay -Syu tmux
symlink
ln -s ~/.config/dot-tmux ~/.config/tmux # repo
ln -s ~/.config/dot-tmux/tmux.conf ~/.tmux.conf # cfg file
don't include plugin files
echo 'plugins/*' >> .gitignore
clone tpm
from repo:
$ git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
init configuration file to use tpm
:
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.config/tmux/plugins/' # change plugins install dir
set -g @plugin 'tmux-plugins/tpm' # plugin manager
set -g @plugin 'tmux-plugins/tmux-sensible' # plugin
run '~/.config/tmux/plugins/tpm/tpm' # keep this line at the very bottom of cfg file
reload init configuration file
tmux source ~/.tmux.conf
# OR
:source-file ~/.tmux.conf
install plugins
prefix + I
plugins should be installed to ~/.config/tmux/plugins
.