-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_tmux.conf
54 lines (41 loc) · 1.39 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
# Change prefix
#unbind C-b
#set -g prefix C-q
#bind C-q send-prefix
set -g status-right ''
# Start window/pane indexes at 1 for easier switching
set -g base-index 1
set -g pane-base-index 1
set-option -g renumber-windows on
bind 0 move-window -t0
# Increase scrollback limit
set-option -g history-limit 500000
set -g default-terminal "screen-256color"
set-option -g allow-rename off
# Better split commands
# Also, start new windows & panes in the same directory
bind c new-window -c "#{pane_current_path}"
bind C new-window -a -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind -n C-Left select-pane -L
bind -n C-Right select-pane -R
bind -n C-Up select-pane -U
bind -n C-Down select-pane -D
bind -n M-h previous-window
bind -n M-l next-window
#bind 0 move-window -t0 \; move-window -r
# Erase the scroll-buffer
bind C-k clear-history
# Set the colour of the status line
#set -g status-bg colour3
# Reload Tmux
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
# See https://unix.stackexchange.com/questions/131011/use-system-clipboard-in-vi-copy-mode-in-tmux
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
set -g mouse off
set -g display-panes-time 2000
bind Q display-panes -d 0