-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
110 lines (83 loc) · 3.04 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Global Settings
set -g default-terminal "screen-256color"
set -g repeat-time 700
set-option -g history-limit 4096
set-option -g base-index 1
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Colors & Styles Settings
set -g status-bg '#0000ff'
set -g status-fg '#ffffff'
set -g pane-border-fg '#000080'
set -g pane-active-border-fg '#ffffff'
# Key Bindings
# set-option -g prefix C-b
# unbind-key -a
#set-option -g prefix C-a
set-option -g prefix "C-Space"
# General
bind-key C-b last-window
bind-key b send-prefix
bind-key R source-file ~/.tmux.conf
bind-key : command-prompt
bind-key ? list-keys
bind-key t clock-mode
bind-key n command-prompt -I \#W "rename-window '%%'"
bind-key s choose-session
bind-key w choose-window
bind-key d detach-client
bind-key r refresh-client
## Pane
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key -r H resize-pane -L
bind-key -r J resize-pane -D
bind-key -r K resize-pane -U
bind-key -r L resize-pane -R
bind-key -r Up resize-pane -U 5
bind-key -r Down resize-pane -D 5
bind-key -r Left resize-pane -L 5
bind-key -r Right resize-pane -R 5
bind-key - split-window
bind-key | split-window -h
bind-key ! break-pane
bind-key { swap-pane -U
bind-key } swap-pane -D
bind-key p display-panes
## Window
bind-key c new-window
bind-key 0 select-window -t :0
bind-key 1 select-window -t :1
bind-key 2 select-window -t :2
bind-key 3 select-window -t :3
bind-key 4 select-window -t :4
bind-key 5 select-window -t :5
bind-key 6 select-window -t :6
bind-key 7 select-window -t :7
bind-key 8 select-window -t :8
bind-key 9 select-window -t :9
bind-key S set-window-option synchronize-panes
bind-key Tab last-pane
bind-key . command-prompt "move-window -t '%%'"
bind-key X confirm-before -p "kill-window #W? (y/n)" kill-window
bind-key x confirm-before -p "kill-pane #P? (y/n)" kill-pane
# Layouts
bind-key -r M-1 select-layout even-horizontal
bind-key -r M-2 select-layout even-vertical
bind-key -r M-3 select-layout main-horizontal
bind-key -r M-4 select-layout main-vertical
bind-key -r M-5 select-layout tiled
# Experimental Key binding
bind-key -n F1 send-key -t 0 C-c # Send C-c to panel 0 (could be used to trigger autotest)
bind-key -n F2 send-key -t 0 C-c !! C-m # Repeat last command (bash)
bind-key [ copy-mode
bind-key ] paste-buffer
set -g status-fg white
set -g status-bg blue
set -g status-attr bright
set-window-option -g window-status-current-bg white
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-attr dim
set -g status-right '#[fg=cyan,bright]#(~/ticker.js)'
set -g status-right-length 75