-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
37 lines (32 loc) · 1.87 KB
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
set -g prefix C-a # prefix key
set -g default-terminal "screen-256color" # terminal type
set -g aggressive-resize on # aggressive resize
set -sg escape-time 0 # escape time
set -g base-index 1 # set initial window index to 1
set -g mouse on # enable mouse support
set -g bell-action none # disable bell
setw -g xterm-keys on # enable xterm keys
setw -g mode-keys vi # enable vi mode keys
bind Escape copy-mode
bind p paste-buffer
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
set -g status-position top # statusbar position
set -g status-interval 1
set -g window-status-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})'
set -g window-status-current-format '[#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})]'
set -g status-right-length 120
set -g status-right '#(date +"%b %_d %H:%M") | #(whoami)@#(hostname -s) '
set -g mode-style bg=red,fg=green,blink
#set -g window-status-current-style style
bind ! split-window -h -c "#{pane_current_path}" # split horizontally
bind - split-window -v -c "#{pane_current_path}" # split vertically
bind n new-window # open new window
bind x kill-pane # kill pane without confirmation
bind k kill-window # kill window
bind q kill-session # kill session
bind r source-file ~/.tmux.conf # reload tmux config
bind t select-layout tiled # tiled layout
if-shell 'test "$SSH_CONNECTION"' 'set -g status-bg red'