Last active
September 7, 2022 16:16
-
-
Save lmduc/64f5b6a585545b260cdcf6a4cd2df0f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Themes | |
### Default statusbar colors | |
set -g status-style bg=colour235,fg=colour6 | |
### Default window title colors | |
setw -g window-status-style bg=default,fg=colour15 | |
### Active window title colors | |
setw -g window-status-current-style bg=default,fg=red | |
### Pane border | |
set -g pane-border-style fg=colour8 | |
set -g pane-active-border-style fg=green | |
### Message text | |
set -g message-style bg=colour235,fg=red | |
### Modes | |
setw -g mode-style bg=colour11,fg=colour13,bold | |
### Pane number display | |
set -g display-panes-active-colour green | |
set -g display-panes-colour blue | |
### Clock | |
setw -g clock-mode-colour blue | |
### Reset to default: https://gist.github.com/lmduc/7ed912372411e41c821ec993a0f45510 | |
source-file ~/.tmux-reset | |
## Configure | |
### remap prefix from 'C-b' to 'C-p' | |
unbind C-b | |
set-option -g prefix C-p | |
bind-key C-p send-prefix | |
### split panes using | and - | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
### reload config file | |
bind r source-file ~/.tmux.conf | |
### switch panes using Alt-arrow without prefix | |
bind C-l select-pane -L | |
bind C-h select-pane -R | |
bind C-k select-pane -U | |
bind C-j select-pane -D | |
### don't rename windows automatically | |
set-option -g allow-rename off | |
### Vim mode for tmux | |
set-window-option -g mode-keys vi | |
bind-key -T copy-mode-vi v send-keys -X begin-selection | |
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle | |
### No delay for ESC | |
set -sg escape-time 10 | |
# Display RAM, CPU | |
set -g @plugin 'thewtex/tmux-mem-cpu-load' | |
set -g status-interval 2 | |
set -g status-right "#S #[fg=green,bg=black]#(tmux-mem-cpu-load --colors --interval 2)#[default]" | |
set -g status-right-length 60 | |
## Plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
# TODO: Install tpm from https://github.com/tmux-plugins/tpm | |
run -b '~/.tmux/plugins/tpm/tpm' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment