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