set-option -g default-terminal "screen-256color" set-option -sa terminal-overrides ',xterm-256color:RGB' set-option -g status-style 'bg=#333333 fg=#5eacd3' unbind-key C-b set-option -g prefix C-a bind-key C-a send-prefix set-option -sg escape-time 1 set-window-option -g monitor-activity off set-option -g mode-keys vi set-option -g history-limit 10000 set-option -g set-titles on set-option -g set-titles-string "#T" # y and p as in vim bind-key Escape copy-mode unbind-key p bind-key p paste-buffer bind-key -T copy-mode-vi 'v' send-keys -X begin-selection bind-key -T copy-mode-vi 'y' send-keys -X copy-selection bind-key -T copy-mode-vi 'Space' send-keys -X halfpage-down bind-key -T copy-mode-vi 'Bspace' send-keys -X halfpage-up # extra commands for interacting with the ICCCM clipboard bind-key C-c run-shell "tmux save-buffer - | xclip -i -sel clipboard" bind-key C-v run-shell "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" # easy-to-remember split pane commands bind-key | split-window -h bind-key - split-window -v unbind-key '"' unbind-key % # moving between panes with vim movement keys bind-key h select-pane -L bind-key j select-pane -D bind-key k select-pane -U bind-key l select-pane -R # moving between windows with vim movement keys bind-key -r C-h select-window -t :- bind-key -r C-l select-window -t :+ # resize panes with vim movement keys bind-key -r H resize-pane -L 5 bind-key -r J resize-pane -D 5 bind-key -r K resize-pane -U 5 bind-key -r L resize-pane -R 5 # fuzzy switch to session unbind-key s bind-key s run-shell -b "tmux switch-client -t $(tmux list-sessions | awk -F: '{print $2}' | fzf-tmux -p | tr -d '\n')"