/
tmux.conf
50 lines (39 loc) · 1.47 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
38
39
40
41
42
43
44
45
46
47
48
49
50
# set -g prefix C-a
# unbind C-b
# bind C-a send-prefix
set-window-option -g xterm-keys on
set -g default-terminal "screen-256color"
set -sg escape-time 0
# set-window-option -g xterm-keys on
=======
set -g history-limit 10000
set -g mouse on
# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1
# set color for status bar
set-option -g status-bg colour235 #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr dim
# set window list colors - red for active and cyan for inactive
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg colour236
set-window-option -g window-status-attr dim
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg colour236
set-window-option -g window-status-current-attr bright
# show session name, window & pane number, date and time on right side of status bar
set -g status-right-length 60
set -g status-right "#[fg=yellow]%d %b %Y #[fg=green]:: %l:%M %p"
# Remapping copy and paste keys
set-window-option -g mode-keys vi
unbind [
bind Escape copy-mode
bind p paste-buffer
#bind-key -t vi-copy 'v' begin-selection
#bind-key -t vi-copy 'y' copy-selection
#bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
#bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
#bind-key C-b last-window
bind-key -n C-S-Left swap-window -t -1
bind-key -n C-S-Right swap-window -t +1