Mercurial > dotfiles.old
annotate tmux.conf @ 167:01ae1be4f236
Remove unused plugin
author | zegervdv <zegervdv@me.com> |
---|---|
date | Fri, 31 Oct 2014 07:36:21 +0100 |
parents | ca5ddc6081dc |
children | 1ec3c51c9047 |
rev | line source |
---|---|
9 | 1 # improve colors |
2 set -g default-terminal 'screen-256color' | |
7 | 3 |
162 | 4 source-file ~/.tmux/statusline.conf |
5 | |
7 | 6 bind s split-window -v |
7 bind v split-window -h | |
8 | |
9 | 9 # act like vim |
10 setw -g mode-keys vi | |
137 | 11 set -g status-keys vi |
140
e037d9b797eb
Fix colors and clipboad in vim and tmux
zegervdv <zegervdv@me.com>
parents:
137
diff
changeset
|
12 # bind-key -t vi-edit Up |
e037d9b797eb
Fix colors and clipboad in vim and tmux
zegervdv <zegervdv@me.com>
parents:
137
diff
changeset
|
13 # bind-key -t vi-eidt Down |
7 | 14 bind h select-pane -L |
15 bind j select-pane -D | |
16 bind k select-pane -U | |
17 bind l select-pane -R | |
9 | 18 bind-key -r C-h select-window -t :- |
19 bind-key -r C-l select-window -t :+ | |
20 | |
21 #act like GNU screen | |
22 unbind C-b | |
23 set -g prefix C-a | |
7 | 24 |
137 | 25 bind Escape copy-mode |
26 | |
7 | 27 # resize panes like vim |
28 # feel free to change the "1" to however many lines you want to resize by, only | |
29 # one at a time can be slow | |
30 bind < resize-pane -L 1 | |
31 bind > resize-pane -R 1 | |
32 bind - resize-pane -D 1 | |
33 bind + resize-pane -U 1 | |
34 | |
9 | 35 # start window numbers at 1 to match keyboard order with tmux window order |
36 set -g base-index 1 | |
7 | 37 |
9 | 38 # renumber windows sequentially after closing any of them |
39 set -g renumber-windows on | |
7 | 40 |
0 | 41 |
42 | |
9 | 43 # remove administrative debris (session name, hostname, time) in status bar |
162 | 44 # set -g status-left '' |
45 # set -g status-right '' | |
9 | 46 |
47 # increase scrollback lines | |
48 set -g history-limit 10000 | |
49 | |
50 # switch to last pane | |
51 bind-key C-a last-pane | |
52 | |
147 | 53 setw -g mode-mouse on |
54 | |
142 | 55 # Map window numbers |
56 # bind-key & select-window -t 1 | |
57 # bind-key é select-window -t 2 | |
58 # bind-key " select-window -t 3 | |
59 # bind-key ' select-window -t 4 | |
60 # bind-key ( select-window -t 5 | |
61 # bind-key § select-window -t 6 | |
62 # bind-key è select-window -t 7 | |
63 # bind-key ! select-window -t 8 | |
64 # bind-key ç select-window -t 9 | |
65 | |
9 | 66 # Local config |
67 if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local' | |
140
e037d9b797eb
Fix colors and clipboad in vim and tmux
zegervdv <zegervdv@me.com>
parents:
137
diff
changeset
|
68 # bind -t vi-copy 'v' begin-selection |
e037d9b797eb
Fix colors and clipboad in vim and tmux
zegervdv <zegervdv@me.com>
parents:
137
diff
changeset
|
69 # bind -t vi-copy 'y' copy-pipe "reattach-to-user-namespace pbcopy" |
e037d9b797eb
Fix colors and clipboad in vim and tmux
zegervdv <zegervdv@me.com>
parents:
137
diff
changeset
|
70 set-option -g default-command "reattach-to-user-namespace -l zsh" |
153 | 71 |
72 # Plugin Manager | |
73 set -g @tpm_plugins " \ | |
74 tmux-plugins/tpm \ | |
75 tmux-plugins/tmux-sensible \ | |
76 tmux-plugins/tmux-resurrect \ | |
77 " | |
78 run-shell ~/.tmux/plugins/tpm/tpm |