-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.tmux.conf
61 lines (47 loc) · 1.48 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
# ##############################################################
# Global settings.
#
# Switch the prefix to Ctrl-Space since Ctrl-b interferes with Vim.
set -g prefix C-b
set -g history-limit 5000
unbind ^A
bind ^A select-pane -t :.+
# mouse stuff
set -g mouse on
# Change the default input delay in order to improve Vim
# performance.
set -sg escape-time 1
# Number windows and panes starting at 1 so that we can jump to
# them easier.
set -g base-index 1
set -g pane-base-index 1
# vi mode.
set -g mode-keys vi
set -g status-keys vi
# xterm-keys for ctrl-left
set-window-option -g xterm-keys on
set -g xterm-keys on
set -g default-terminal "screen-256color"
set-option -ag terminal-overrides ",*256*:Tc"
# ##############################################################
# Key bindings.
#
# Reload .tmux.conf with "r".
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Split windows with a more visual set of characters.
bind | split-window -h
bind - split-window -v
# Select panes with vi-style movement commands.
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes with vi-style movement commands.
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
#bind -n Pageup copy-mode -u
unbind -T copy-mode-vi MouseDragEnd1Pane
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe "reattach-to-user-namespace pbcopy"
set-option -g default-command "reattach-to-user-namespace -l bash"