Last active
September 3, 2026 08:41
-
-
Save darkarnium/9dba236e1fd94d546bebd8ff178779d0 to your computer and use it in GitHub Desktop.
tmux - Configuration
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
| # ============================================ | |
| # ESSENTIAL SETTINGS | |
| # ============================================ | |
| # Fix Vim ESC delay (tmux 3.5+ already defaults to 10ms) | |
| set -sg escape-time 0 | |
| # Increase scrollback buffer | |
| set -g history-limit 50000 | |
| # Start windows and panes at 1, not 0 | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| # Disable mouse support | |
| set -g mouse off | |
| # Enable focus events for vim autoread | |
| set -g focus-events on | |
| # Set terminal with proper colors | |
| set -g default-terminal "tmux-256color" | |
| set -as terminal-features ",xterm-256color:RGB" | |
| # Aggressive resize for multi-client | |
| setw -g aggressive-resize on | |
| # ============================================ | |
| # KEY BINDINGS | |
| # ============================================ | |
| # Change prefix to Ctrl+a (more ergonomic) | |
| #unbind C-b | |
| #set -g prefix C-a | |
| #bind C-a send-prefix | |
| # Reload config | |
| bind r source-file ~/.tmux.conf \; display "Config reloaded!" | |
| # Better pane splitting (and keep current path) | |
| bind | split-window -h -c "#{pane_current_path}" | |
| bind - split-window -v -c "#{pane_current_path}" | |
| bind c new-window -c "#{pane_current_path}" | |
| # Vim-style pane navigation | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| # Vim-style pane resizing | |
| bind -r H resize-pane -L 5 | |
| bind -r J resize-pane -D 5 | |
| bind -r K resize-pane -U 5 | |
| bind -r L resize-pane -R 5 | |
| # ============================================ | |
| # APPEARANCE | |
| # ============================================ | |
| # Status bar position | |
| set -g status-position top | |
| # Status bar colors | |
| set -g status-style 'bg=#13161d fg=#8b949e' | |
| set -g status-left-length 20 | |
| set -g status-right-length 50 | |
| # Status bar content | |
| set -g status-left '#[fg=#00e68a,bold] #S #[fg=#30363d]│ ' | |
| set -g status-right '#[fg=#30363d]│#[fg=#8b949e] %H:%M #[fg=#30363d]│#[fg=#8b949e] %d-%b-%y ' | |
| # Window status | |
| setw -g window-status-format ' #I:#W ' | |
| setw -g window-status-current-format '#[fg=#00e68a,bold] #I:#W ' | |
| # Pane border colors | |
| set -g pane-border-style 'fg=#30363d' | |
| set -g pane-active-border-style 'fg=#00e68a' | |
| # Pane scrollbars — show scrollback position (tmux 3.6+) | |
| set -g pane-scrollbars on | |
| set -g pane-scrollbars-position right | |
| # Message styling | |
| set -g message-style 'bg=#00e68a fg=#000000 bold' | |
| # ============================================ | |
| # COPY MODE | |
| # ============================================ | |
| # Use vi keys | |
| setw -g mode-keys vi | |
darkarnium
commented
Sep 3, 2026
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment