Use Tmux Plugin Manager
Tmux Plugin Manager extends your tmux
capabilities
Installation is via GitHub:
$ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Add the following to your tmux
config ($XDG_CONFIG_HOME/tmux/tmux.conf
or ~/.tmux.conf
):
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Source your newly updated configuration
$ tmux source ~/.tmux.conf
As mentioned the above might very depending on the location of your configuration file, $XDG_CONFIG_HOME/tmux/tmux.conf
or ~/.tmux.conf
. Using: $XDG_CONFIG_HOME
does declutter your $HOME
directory.
To install, in tmux
you do:
prefix
+ I (capital i, as in Install) to fetch the plugin, this also refreshes the tmux
environment
And later to update from tmux
do:
prefix
+ U
Of noticable plugins I can mention:
Or check this repository of plugins