-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
119 lines (95 loc) · 2 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
110
111
112
113
114
115
116
117
118
119
#utf setting
set-window-option -g utf8 on
set-window-option -g mode-keys vi
set-window-option -g automatic-rename off
set -g status-bg black
set -g status-fg green
setw -g window-status-current-attr underscore
# toggle statusbar
bind-key b set-option status
# listen for activity on all windows
#set -g bell-action any
#set-option -g visual-bell on
# on-screen time for display-panes in ms
set -g display-panes-time 2000
#set -g bell-action none
set -g set-titles on
set -g set-titles-string "tmux:#W#I"
set -g base-index 1
set -g status-left "#W"
set -g status-left-attr bold
set -g status-right "#H:#S"
set -g pane-active-border-bg black
set -g pane-active-border-fg black
# Window options
setw -g window-status-current-fg red
setw -g monitor-activity off
setw -g automatic-rename on
# Colors
set -g status-bg black
set -g status-fg white
set -g message-bg white
set -g message-fg black
# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix
# Bind appropriate commands similar to screen.
# lockscreen ^X x
unbind ^X
bind ^X lock-server
unbind x
bind x lock-server
# screen ^C c
unbind ^C
bind ^C new-window
unbind c
bind c new-window
# detach ^D d
unbind ^D
bind ^D detach
# displays *
unbind *
bind * list-clients
# ctrl+left/right cycles thru windows
bind-key -n C-right next
bind-key -n C-left prev
# title A
unbind A
bind A command-prompt "rename-window %%"
# other ^A
unbind ^A
bind ^A last-window
# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
bind ^P previous-window
unbind p
bind p previous-window
unbind BSpace
bind BSpace previous-window
# quit \
unbind \
bind \ confirm-before "kill-server"
# kill K k
unbind K
bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-window"
# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
bind l refresh-client
# more intuitive keybindings for splitting
unbind %
bind h split-window -v
unbind '|'
bind v split-window -h
# :kB: focus up
unbind Tab
unbind BTab
# " windowlist -b
unbind '"'
bind 'w' choose-window