Created
February 25, 2026 01:12
-
-
Save nsdevaraj/cacc384d3a84ce952e9ba0b490f40121 to your computer and use it in GitHub Desktop.
nano ~/.tmux.conf && tmux source-file ~/.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
| ##### Basics ##### | |
| # Use tmux-256color and enable RGB | |
| set -g default-terminal "tmux-256color" | |
| set-option -sa terminal-features ",xterm*:RGB" | |
| # History & timings | |
| set -g history-limit 20000 | |
| set -sg escape-time 0 | |
| set -g repeat-time 300 | |
| # Don’t rename windows automatically | |
| setw -g automatic-rename off | |
| setw -g allow-rename off | |
| ##### Prefix & keys ##### | |
| # Change prefix to Ctrl-a (GNU screen style) | |
| set -g prefix C-a | |
| unbind C-b | |
| bind C-a send-prefix | |
| # Easier split keys (prefix | and -) | |
| bind | split-window -h | |
| bind - split-window -v | |
| unbind '"' | |
| unbind % | |
| # Reload config quickly | |
| bind r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded" | |
| ##### Mouse & copy mode ##### | |
| # Enable mouse (resize, select pane/window, scroll) | |
| set -g mouse on | |
| # Use vim-style keys in copy mode | |
| setw -g mode-keys vi | |
| # Make copy use system clipboard when available (Linux + xclip / macOS pbcopy) | |
| bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i 2>/dev/null || pbcopy" | |
| ##### Status bar ##### | |
| # Simple status line | |
| set -g status on | |
| set -g status-interval 5 | |
| set -g status-justify centre | |
| set -g status-left-length 40 | |
| set -g status-right-length 120 | |
| set -g status-left "#S " | |
| set -g status-right "%Y-%m-%d %H:%M " | |
| # Current window underline | |
| set -g window-status-current-style "underscore" | |
| ##### Panes & windows ##### | |
| # Start window and pane numbers at 1 | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| # Easier navigation between panes (vim-style) | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| # Resize panes with Alt + arrows | |
| bind -n M-Left resize-pane -L 5 | |
| bind -n M-Right resize-pane -R 5 | |
| bind -n M-Up resize-pane -U 5 | |
| bind -n M-Down resize-pane -D 5 | |
| ##### Quality-of-life ##### | |
| # No visual or audible bell | |
| set -g bell-action none | |
| # Keep dead windows visible | |
| set -g remain-on-exit on | |
| # Activity monitoring toggle | |
| bind m set monitor-activity | |
| ##### TPM (plugin manager) – optional ##### | |
| # Install: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
| #set -g @plugin 'tmux-plugins/tpm' | |
| #run '~/.tmux/plugins/tpm/tpm' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment