Permalink
Cannot retrieve contributors at this time
# Appearance customization | |
set -g status-bg black | |
set -g status-fg white | |
set -g window-status-current-fg green | |
# Custom modifier key | |
set -g prefix C-Space | |
unbind-key C-b | |
bind-key C-Space send-prefix | |
# Terminal improvements | |
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@" | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
set -g mouse on | |
set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 | |
# Clear scrollback buffer | |
bind l clear-history | |
# Custom key bindings to split the window | |
bind-key v split-window -h | |
bind-key s split-window -v | |
# Reload tmux config | |
bind r source-file ~/.tmux.conf | |
# No delay for escape key press | |
set -sg escape-time 0 | |
# Shift arrow to switch panes | |
bind -n S-Left select-pane -L | |
bind -n S-Right select-pane -R | |
bind -n S-Up select-pane -U | |
bind -n S-Down select-pane -D | |
# Control arrow to create panes | |
bind -n C-Down split-window -v | |
bind -n C-Up split-window -v -b | |
bind -n C-Right split-window -h | |
bind -n C-Left split-window -h -b | |
# Easier window navigation | |
bind -n C-Tab next-window | |
bind -n C-S-Tab previous-window | |
bind -n C-S-Left previous-window | |
bind -n C-S-Right next-window | |
# Ctrl + Alt + Left/Right to move windows | |
bind-key -n C-M-Left swap-window -t -1 | |
bind-key -n C-M-Right swap-window -t +1 | |
# Copy to cygwin clipboard | |
bind -n C-t run "tmux save-buffer - > /dev/clipboard" | |
# Kill tabs quicker | |
bind-key x kill-pane | |
# Plugins | |
run-shell ~/.tmux-plugins/resurrect/resurrect.tmux |