Prerequisites: Install tmux plugin manager from the below link
https://github.com/tmux-plugins/tpm#key-bindings
After you have followed the steps and installed tmux-plugin manager successfully, you can now make changes to your βtmux.confβ file.
Step1. Open your ~/.tmux.conf file in a text editor:
nvim ~/.tmux.conf
Step2. Copy the tmux.conf code from the repository and paste it into your tmux.conf file & exit your editor.
Step3. If you are in tmux already(prefered), refresh and apply the script using:
tmux source-file ~/.tmux.conf
Step4. This way your default tmux keybinding of βCtrl+bβchanges to βCtrl+<spacebar>β, now open up the tmux.conf file again.
Step5. Now press Ctrl+<spacebar> (leave the keys) + I to install all the plugins into your tmux and now you are ready.
NOTE: Your leader keybinding is now: Ctrl+<spacebar>
You can add all your future modifications to the tmux.conf file, and install it using <leader> + I