-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
92 lines (71 loc) · 2.14 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
89
90
91
92
# act like vim
#setw -g utf8 on
setw -g mode-keys vi
setw -g automatic-rename off
# colors
# window numbering starts at 1
set -g base-index 1
set-window-option -g pane-base-index 1
# set -g mode-mouse on
# setw -g mouse-select-window on
# setw -g mouse-select-pane on
# move around panes with j and k, a bit like vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes like vim
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10
# act like GNU screen
unbind C-b
set -g prefix C-a
# activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# split windows like vim
bind b split-window -v
bind v split-window -h
bind y set-window-option synchronize-panes
# bind : to command-prompt like vim
# this is the default in tmux already
bind : command-prompt
# resize windows to smallest client only when active
setw -g aggressive-resize on
# no time between C-a and command
set -s escape-time 0
# send command to nested tmux with C-a a
bind-key a send-prefix
# last window with C-a C-a
bind-key C-a last-window
# cursors for windows
bind Left previous-window
bind Right next-window
# Copy and paste a bit like vim
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
# needed for ruby motion
#set-option -g default-command "login-shell"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# set -g default-terminal "xterm"
set -g default-terminal "screen-256color"
#set -g default-terminal "tmux-256color"
#set -ga terminal-overrides ",*256col*:Tc"
#set -g @plugin 'seebi/tmux-colors-solarized'
#set -g @colors-solarized 'dark'
#source ~/.solarized/tmux-colors-solarized/tmuxcolors-256.conf
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'