Created
January 11, 2022 11:34
-
-
Save mgrzaslewicz/7fcec9a21059b435e1a4cc00d385412c to your computer and use it in GitHub Desktop.
tmux config
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
| # rebind control key | |
| set -g prefix C-Space | |
| unbind C-b | |
| set-option -g history-limit 10000 | |
| # count windows from 1 | |
| set -g base-index 1 | |
| # Enable mouse control (clickable windows, panes, resizable panes) | |
| set -g mouse on | |
| set -g default-terminal "screen-256color" | |
| # List of plugins | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| setw -g mode-keys vi | |
| setw -g window-status-current-style fg=white,bg=blue | |
| set-window-option -g window-status-separator ' | ' | |
| # 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 | |
| # copy to system clipboard on select | |
| bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe "xclip -selection clipboard -i" \; send -X clear-selection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment