-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
66 lines (52 loc) · 1.69 KB
/
dot_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
## @see http://superuser.com/a/385870
## with minor modifications
## Use C-q as prefix command instead of C-b
unbind C-b
set -g prefix C-q
## Copy mode
## @see http://www.drbunsen.org/text-triumvirate.html
bind C-y paste-buffer
bind ] run "tmux save-buffer - | pbcopy"
setw -g window-status-current-style bg=blue
setw -g automatic-rename on
set -g history-limit 100000
set -g base-index 1
set -s escape-time 0
# Use C-q q to send C-q to other programs
bind q send-prefix
# hit C-q twice to go to last window
bind C-q last-window
bind b set-option status
bind / command-prompt "split-window 'exec man %%'"
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind C-h select-pane -L
bind C-j select-pane -D
bind C-k select-pane -U
bind C-l select-pane -R
# move to next and previous window while also holding Ctrl
bind C-n next-window
bind C-p previous-window
# resize panes like vim
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10
# Set terminal
set -g default-terminal "screen-256color"
## only constrain the maximum size of a client connected to a window
setw -g aggressive-resize on
# to make emacs work
setw -g xterm-keys on
## Mouse behaviour
set -g mouse on
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind -n WheelDownPane select-pane -t= \; send-keys -M
set-option -g default-command "zsh"