53 lines
1.6 KiB
Plaintext
53 lines
1.6 KiB
Plaintext
# List of plugins
|
|
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.config/tmux/plugins'
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'TanglingTreats/tmux-everforest' # Adds to the list of plugins
|
|
set -g @tmux-everforest 'dark-medium'
|
|
# 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'
|
|
|
|
# remap prefix from 'C-b' to 'C-Space'
|
|
unbind C-b
|
|
set-option -g prefix C-Space
|
|
bind-key C-Space send-prefix
|
|
|
|
# split panes using | and -
|
|
bind \\ split-window -h
|
|
bind - split-window -v
|
|
unbind '"'
|
|
unbind %
|
|
|
|
# reload config file (change file location to your the tmux.conf you want to use)
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
# don't do anything when a 'bell' rings
|
|
set -g visual-activity off
|
|
set -g visual-bell off
|
|
set -g visual-silence off
|
|
setw -g monitor-activity off
|
|
set -g bell-action none
|
|
|
|
# Enable mouse control (clickable windows, panes, resizable panes)
|
|
set -g mouse on
|
|
|
|
# Start window and pane numbers at 1
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
|
|
# Put tmux bar on top
|
|
set-option -g status-position top
|
|
|
|
if "test ! -d ~/.config/tmux/plugins/tpm" \
|
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm && ~/.config/tmux/plugins/tpm/bin/install_plugins'"
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
run '~/.config/tmux/plugins/tpm/tpm'
|
|
|
|
if-shell "[ $(checkupdates | wc -l) -gt 0 ]" \
|
|
"set-option -ag status-right '(#(checkupdates | wc -l)) '"
|
|
|