Skip to main content

tmux

tmux config examples

to change the default tmux prefix to Ctrl+a

unbind-key C-b
set-option -g prefix C-a
bind-key C-a send-prefix

installing tmux plugin manager

make sure xdg config home is set

``` echo 'export XDG_CONFIG_HOME="$HOME/.config"' >> ~/.profile ```

clong the github repo

git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm

put the following in the bottom of 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 'github_username/plugin_name#branch'
# 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'