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#set -g @plugin 'tmux-plugins/tmux-sensible'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
#catppuccin/tmux'
set -g @plugin@catppuccin_status_modules_right 'github_username/plugin_name#branch'"host #application"
set -g @plugin@catppuccin_application_icon 'git@github.com:user/plugin'
#">_"
set -g @plugin@catppuccin_host_icon 'git@bitbucket.com:user/plugin'"@"
set -g @catppuccin_status_right_separator " "
set -g @catppuccin_status_left_separator " "

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

inside tmux press prefix I to install plugins (including tpm itself)