-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
67 lines (54 loc) · 1.68 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
# .tmux.conf
#
# Reset prefix
set -g prefix C-n
bind C-n send-prefix
unbind C-b
# General options
set-option -g history-limit 20000
setw -g mode-keys vi
setw -g automatic-rename off
set -g default-terminal "screen-256color"
# Powerline
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf
source /usr/lib/python2.6/site-packages/powerline/bindings/tmux/powerline.conf
# Shortcuts to move windows <ctrl><shift>Left/Right
bind-key -n C-S-Left swap-window -t -1
bind-key -n C-S-Right swap-window -t +1
# Switch sessions
bind-key W choose-session
# Switch windows
bind-key -r L next-window
bind-key -r H previous-window
bind-key b last-window
# Switch panes
bind-key -r h select-pane -L
bind-key -r j select-pane -D
bind-key -r k select-pane -U
bind-key -r l select-pane -R
# Move to the next or previous session
# Could be done with choose-session
# '(' and ')' are already set to this
#bind-key J next-session
#bind-key K previous-session
# Join panes
bind-key s command-prompt -p "send pane to:" "join-pane -h -t '%%'"
bind-key S command-prompt -p "send pane to:" "join-pane -v -t '%%'"
# Reload tmux config
bind-key r source ~/.tmux.conf
# Synchronize panes
bind-key e set -g synchronize-panes
# Copy commands
bind-key p paste-buffer
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-selection
bind-key -t vi-copy V rectangle-toggle # Changes between line and columnwise selection
bind-key -t vi-copy Y copy-end-of-line
#bind-key -t vi-copy T start-of-line \; copy-end-of-line
## Tmux plugins
#set -g @tpm_plugins ' \
# tmux-plugins/tpm \
# tmux-plugins/tmux-resurrect'
#
## Initialize tmux plugin manager (tpm)
#run-shell '~/.tmux/plugins/tpm/tpm'