1 # $Id: .tmux.conf,v 1.16 2020/12/07 11:47:20 cvs Exp $
3 # Do not start a login shell by default
4 set -g default-command "${SHELL}"
6 # Set window notifications
7 setw -g monitor-activity off
8 set -g visual-activity on
10 # I am using a 256 color terminal
11 # if this is set to tmux-256color vim will show A,C,D,E chars when pressing
12 # Arrow keys in insert mode inside tmux. Setting it to xterm-256 fixes it
13 #set -g default-terminal "tmux-256color"
14 set -g default-terminal "xterm-256color"
15 set-window-option -g xterm-keys on
17 # Disable active pane border indicator
18 set -g pane-active-border-style bg=black,fg=white
21 set -g history-limit 10000
24 bind R source-file ~/.tmux.conf \; display-message "Config reloaded.."
27 setw -g automatic-rename on
48 # Next window with space and n
56 bind A command-prompt "rename-window %%"
64 # Previous window with p
66 bind p previous-window
76 bind '\' confirm-before "kill-server"
80 bind K confirm-before "kill-window"
82 bind k confirm-before "kill-window"
86 bind ^L refresh-client
94 # Split window horizontally
96 bind Enter split-window -h
100 bind Tab select-pane -t:.+
102 bind BTab select-pane -t:.-
104 bind [ select-pane -t:.+
111 #bind '"' choose-window
113 # Use C-a F12 to disable outer session
114 # Copied from https://github.com/samoshkin/tmux-config/blob/master/tmux/tmux.conf
119 set -u status-style \;\
120 set -u window-status-current-style \;\
121 set -u window-status-current-format \;\
126 set key-table off \;\
127 if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
128 refresh-client -S \;\