My tmux configuration.
Open a terminal and run the following:
cd ~
git clone --recursive https://github.com/BenjaminRH/dottmux.git .tmux
ln -s .tmux/tmux.conf .tmux.conf
A list of plugins used.
- tmux-continuum - Automatic periodic session saving
- tmux-copycat - Search terminal history, supports regex
- tmux-resurrect - Restore tmux sessions after reboot
All plugins are git submodules, managed manually. With a small number of plugins, Tmux Plugin Manager seems like overkill, plus this is better for offline plugin management.
git submodule add git@github.com:user/tmux-plugin.git plugins/tmux-plugin
If the submodule has been initialized:
git submodule deinit -f plugins/tmux-plugin
rm -rf .git/modules/plugins/tmux-plugin
Remove the submodule:
git rm -f plugins/tmux-plugin
Remove the entry from the .gitmodules file, then commit it:
sed -i -e '/submodule "plugins\/tmux-plugin"/,+2d' .gitmodules
git add .gitmodules
git commit -m "Removed tmux-plugin"