Created
November 14, 2025 08:20
-
-
Save f4ww4z/e40d7110f20c654455c994c0b23c0447 to your computer and use it in GitHub Desktop.
My 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
| # Change prefix from Ctrl+b to Ctrl+a (easier to reach) | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # Split panes using | and - | |
| bind | split-window -h | |
| bind - split-window -v | |
| unbind '"' | |
| unbind % | |
| # Switch panes using Alt+arrow without prefix | |
| 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 | |
| # Enable mouse mode | |
| set -g mouse on | |
| # Start window numbering at 1 | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| # Reload config file | |
| bind r source-file ~/.tmux.conf \; display "Config reloaded!" | |
| # Increase scrollback buffer | |
| set -g history-limit 10000 | |
| # Better colors | |
| set -g default-terminal "screen-256color" | |
| setw -g mode-keys vi | |
| bind-key -T copy-mode-vi v send -X begin-selection | |
| bind-key -T copy-mode-vi C-v send -X rectangle-toggle # Block selection | |
| bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' | |
| bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment