Last active
March 8, 2026 20:45
-
-
Save ippa/74c60efbb6cab3a6c87857ae096c3a6f to your computer and use it in GitHub Desktop.
.tmux.conf
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
| # Unbind default | |
| unbind C-b | |
| # Set new prefix | |
| set -g prefix C-a | |
| bind C-a send-prefix | |
| # Enable mouse control (clickable windows, panes, resizable panes) | |
| set -g mouse on | |
| bind -Tcopy-mode WheelUpPane send -N 1 -X scroll-up | |
| bind -Tcopy-mode WheelDownPane send -N 1 -X scroll-down | |
| # r to reload conf | |
| bind r source-file ~/.tmux.conf | |
| # auto renumber windows (last one open becomes 0) | |
| set -g renumber-windows on | |
| # split window into panes | |
| bind -n M-% split-window -h | |
| bind -n M-\" split-window -v | |
| # meta (alt) + <nr> to switch window | |
| bind -n M-1 select-window -t 0 | |
| bind -n M-2 select-window -t 1 | |
| bind -n M-3 select-window -t 2 | |
| bind -n M-4 select-window -t 3 | |
| bind -n M-5 select-window -t 4 | |
| # meta (alt) + page up/down to jump between windows | |
| bind -n M-PageUp if -F '#{window_start_flag}' '' 'previous-window' | |
| bind -n M-PageDown if -F '#{window_end_flag}' '' 'next-window' | |
| # meta (alt) to switch panes | |
| bind -n M-Left select-pane -L | |
| bind -n M-Right select-pane -R | |
| bind -n M-Up select-pane -U | |
| bind -n M-Down select-pane -D | |
| # meta + shift + arrows to resize panes | |
| bind -n M-S-Left resize-pane -L 1 | |
| bind -n M-S-Right resize-pane -R 1 | |
| bind -n M-S-Up resize-pane -U 1 | |
| bind -n M-S-Down resize-pane -D 1 | |
| # cycle panes | |
| #bind -n -r C-PageUp select-pane -t :.- | |
| #bind -n -r C-PageDown select-pane -t :.+ | |
| # colors conf | |
| set -g pane-border-style fg=colour238 | |
| set -g pane-active-border-style fg=colour255 | |
| set -g status-style bg=colour235,fg=colour250 | |
| set -g status-left "" | |
| set -g status-right "" | |
| set -g window-status-style fg=colour244,bg=colour235 | |
| set -g window-status-current-style fg=colour255,bg=colour238,bold |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment