-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
65 lines (51 loc) · 1.62 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
#---------------------------Instructions----------------------------------
# remap prefix from C-b to C-a
unbind C-b
set -g prefix C-a
bind-key C-a send-prefix
# C-a S : switch session
unbind S
bind S choose-session
# C-a A : rename window
unbind A
bind A command-prompt "rename-window %%"
# C-a c : create new window
unbind c
bind c new-window -c "#{pane_current_path}"
# C-a C-a : change to the last window
unbind ^a
bind ^a last-window
# C-a K : kill window
unbind K
bind K confirm-before "kill-window"
# C-a s : create new horizontal pane
bind s split-window -v -c "#{pane_current_path}"
# C-a v : create new vertical pane
bind v split-window -h -c "#{pane_current_path}"
# C-a h/j/k/l : select pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# C-a >/</-/+ : resize panes
bind < resize-pane -L 3
bind > resize-pane -R 3
bind - resize-pane -D 1
bind + resize-pane -U 1
#-------------------------------------------------------------------
#---------------------------theme----------------------------------
# global
set -g default-terminal screen-256color
set -g display-time 3000
set -g history-limit 10000
set -g renumber-windows on
setw -g mode-keys vi
# status line
set -g status-bg black
set -g status-fg white
set -g status-interval 15 # 15 sec refresh
set -g status-justify left
set -g status-left-length 15
set -g status-left "#[fg=white,bg=blue] > #S < #[default] |" # session-name
set -g status-right-length 40
set -g status-right "#[fg=red,bright][ #[fg=cyan]#H #[fg=red]]#[default] #[fg=yellow,bright]- %Y.%m.%d #[fg=green]%H:%M #[default]"