-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
48 lines (37 loc) · 1.14 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
unbind C-b
set -g prefix C-a
# set-option default-term xterm-color
set-option -g default-shell /bin/bash
# set 256 colors (requires tmux -2)
set -g default-terminal "screen-256color"
# Splits open same directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
#urxvt tab like window switching (-n: no prior escape seq)
bind -n S-down new-window -c "#{pane_current_path}"
bind -n S-left prev
bind -n S-right next
bind -n C-left swap-window -t -1
bind -n C-right swap-window -t +1
# window index fix
set -g base-index 1
# pane movements
bind-key j select-pane -D
bind-key k select-pane -U
bind-key h select-pane -L
bind-key l select-pane -R
set-window-option -g mode-keys vi
# Ctrl+a+a, like vim ctrl+w+w
bind-key a select-pane -R
# status bar
set -g status-bg black
set -g status-fg yellow
set -g status-interval 1
set-window-option -g window-status-current-bg yellow
set-window-option -g window-status-current-fg black
set -g status-left ' '
set -g status-right '#[fg=yellow]%Y-%m-%d %H:%M#[default] '
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+