-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
46 lines (38 loc) · 1.22 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
bind R source-file ~/.tmux.conf
set-option -g default-terminal xterm-256color
set-option -g mouse on
set -g history-limit 250000
set-option -gq bell-on-alert on
set-window-option -g mode-keys vi
# prefix
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# numbering
set-option -g base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# statusline
set -g status-justify left
set -g status-fg white
set -g status-bg black
setw -g window-status-format "#I:#W#{?window_flags,#{window_flags}, }"
setw -g window-status-current-format "#[fg=green,bold]#I:#W#{?window_flags,#{window_flags}, }"
setw -g window-status-separator " "
set -g status-left ""
set -g status-right "#[fg=blue][#S][#H]"
# split windows like vim
bind s split-window -v
bind v split-window -h
# move around panes with hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# shift windows
bind-key < swap-window -t -1\; select-window -t -1
bind-key > swap-window -t +1\; select-window -t +1
# other nice things
bind A attach-session -c "#{pane_current_path}" # cd to current directory
bind J join-pane -t :-1 # join pane to previous window
bind W last-window # since default binding is overridden