Created
January 10, 2022 18:44
-
-
Save NickCrew/db745f5c19b542e4e1f25307931ec971 to your computer and use it in GitHub Desktop.
Tmux v1.8 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
# Basic Tmux Config | |
# Compatible with version: 1.8 | |
# Remap prefix to Ctrl+a | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# Reload tmux config | |
bind r source-file ~/.tmux.conf | |
# easier to remember split bindings | |
bind | split-window -h | |
bind - split-window -v | |
# new window | |
bind-key c new-window -a | |
# navigate windows | |
bind-key -n C-n next-window | |
bind-key -n C-p previous-window | |
# enable vi mode keys for copy paste | |
set-option -g status-keys vi | |
set-window-option -g mode-keys vi | |
bind -t vi-copy 'v' begin-selection | |
bind -t vi-copy 'y' copy-selection | |
# navigate panes vim-style | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# resize windows | |
bind -n M-up resize-pane -U 1 | |
bind -n M-down resize-pane -D 1 | |
bind -n M-left resize-pane -L 1 | |
bind -n M-right resize-pane -R 1 | |
# renaming windows | |
bind-key e command-prompt rename: 'rename-window %1' | |
set-option -g allow-rename off | |
# set default terminal mode to 256 colors | |
set -g default-terminal "screen-256color" | |
## keep tmux msgs around longer | |
set -g display-time 3000 | |
# window notifications | |
set-window-option -g monitor-activity on | |
set -g visual-activity on | |
# While mouse is on, hold option key to select text | |
set -g mouse-select-window on | |
set -g mouse-resize-pane off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment