2014-01-27 19:00:11 -08:00
|
|
|
# reload tmux conf
|
|
|
|
|
unbind r
|
|
|
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
|
|
|
|
|
|
bind-key C-a last-window
|
|
|
|
|
|
|
|
|
|
setw -g aggressive-resize on
|
|
|
|
|
|
|
|
|
|
# faster escape recognition
|
|
|
|
|
set-option -sg escape-time 50
|
|
|
|
|
|
|
|
|
|
# number tabs starting at 1
|
|
|
|
|
set-option -g base-index 1
|
|
|
|
|
|
|
|
|
|
set-option -g default-terminal screen-256color
|
|
|
|
|
|
|
|
|
|
# STATUS BAR
|
|
|
|
|
set-option -g status-bg colour234 # light gray bg
|
|
|
|
|
set-option -g status-fg colour255 # black text
|
|
|
|
|
|
|
|
|
|
setw -g window-status-current-format "#[fg=white,bold]#[bg=cyan][#I:#W]"
|
|
|
|
|
|
|
|
|
|
# xterm title
|
|
|
|
|
set-option -g set-titles on
|
|
|
|
|
set-option -g set-titles-string '[#S:#I #H] #W'
|
|
|
|
|
|
|
|
|
|
# mouse mode
|
2015-12-02 16:02:21 -08:00
|
|
|
set -g mouse on
|
2014-01-27 19:00:11 -08:00
|
|
|
|
2017-07-29 02:47:34 -07:00
|
|
|
# clipboard
|
|
|
|
|
set -g set-clipboard off
|
|
|
|
|
|
2014-01-27 19:00:11 -08:00
|
|
|
# big scrollback
|
2024-02-01 21:12:29 -08:00
|
|
|
set-option -g history-limit 10240
|
2014-03-21 16:59:55 -07:00
|
|
|
|
|
|
|
|
# smart pane switching with awareness of vim splits
|
|
|
|
|
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
|
|
|
|
|
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
|
|
|
|
|
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
|
|
|
|
|
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
|