-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
88 lines (66 loc) · 1.87 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
# Set prefix to Ctrl-a
unbind C-b
set -g prefix C-a
bind-key C-a send-prefix
# Scroll history
set -g history-limit 30000
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50
# Use vi keys in copy & choice mode
set -g mode-keys vi
# Vi style in copy mode
unbind p
bind-key p paste-buffer
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
# Killing all windows except current
unbind q
bind-key q kill-window -a
# Killing pane w/o confirmation
unbind x
bind-key x kill-pane
# 256 colour support
set -g default-terminal "screen-256color"
# Show activity in background windows
setw -g monitor-activity on
# Share pasteboard between tmux and os x
set -g set-clipboard on
# Start window/pane numbers from 1
set -g base-index 1
set -g pane-base-index 1
# Set window titles
set -g set-titles on
# Repeat timeout option in milliseconds
set -g repeat-time 300
# Just quickly creates new window
bind n neww -c "#{pane_current_path}"
# Reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display " Tmux.conf reloaded."
# Switching panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Movement's
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# Resize panes
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r H resize-pane -L 5
bind-key -r L resize-pane -R 5
# Sync panes
unbind s
bind-key s setw synchronize-panes
# Use PREFIX | to split window horizontally and PREFIX - to split vertically
bind | split-window -h
bind - split-window -v
# setw -g mode-mouse on
# set -g mouse-select-pane on
# set -g mouse-resize-pane on
# set -g mouse-select-window on
# Swapping windows
bind-key -r > swap-window -t -1
bind-key -r < swap-window -t +1
# Tmux theme
source ~/.tmux.theme