Mercurial > dotfiles
annotate tmux/tmux.conf @ 468:979513155f17
Tmux config tweaks
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 09 Apr 2019 18:54:30 -0700 |
parents | c05a8f250042 |
children |
rev | line source |
---|---|
236 | 1 # Make the prefix easier to type, like |
2 # pretty much everybody on the fucking planet. | |
3 unbind C-b | |
4 set -g prefix C-a | |
5 bind C-a send-prefix | |
6 | |
351
f00dd35b4731
Slightly better tmux.
Ludovic Chabant <ludovic@chabant.com>
parents:
236
diff
changeset
|
7 # Start at 1, so you don't have to reach to that 0 on the right of the keyboard so often. |
f00dd35b4731
Slightly better tmux.
Ludovic Chabant <ludovic@chabant.com>
parents:
236
diff
changeset
|
8 set -g base-index 1 |
468 | 9 # Renumber windows when a window is closed |
10 # This guarantees it will be easier for you to switch | |
11 # between windows as you keep opening and closing them | |
12 set -g renumber-windows on | |
13 | |
14 # Automatically set window title according to the running program | |
15 set-window-option -g automatic-rename on | |
16 set-option -g set-titles on | |
351
f00dd35b4731
Slightly better tmux.
Ludovic Chabant <ludovic@chabant.com>
parents:
236
diff
changeset
|
17 |
f00dd35b4731
Slightly better tmux.
Ludovic Chabant <ludovic@chabant.com>
parents:
236
diff
changeset
|
18 # Thyme integration |
f00dd35b4731
Slightly better tmux.
Ludovic Chabant <ludovic@chabant.com>
parents:
236
diff
changeset
|
19 #set-option -g status-right '#(cat ~/.thyme-tmux)' |
f00dd35b4731
Slightly better tmux.
Ludovic Chabant <ludovic@chabant.com>
parents:
236
diff
changeset
|
20 #set-option -g status-interval 1 |
f00dd35b4731
Slightly better tmux.
Ludovic Chabant <ludovic@chabant.com>
parents:
236
diff
changeset
|
21 |
f00dd35b4731
Slightly better tmux.
Ludovic Chabant <ludovic@chabant.com>
parents:
236
diff
changeset
|
22 # Default to fish |
376
e025c3686025
Don't assume fish's location.
Ludovic Chabant <ludovic@chabant.com>
parents:
351
diff
changeset
|
23 set -g default-command "fish" |
351
f00dd35b4731
Slightly better tmux.
Ludovic Chabant <ludovic@chabant.com>
parents:
236
diff
changeset
|
24 |
405
c05a8f250042
Fix Vim colours in tmux on macOS.
Ludovic Chabant <ludovic@chabant.com>
parents:
376
diff
changeset
|
25 set -g default-terminal "xterm" |
c05a8f250042
Fix Vim colours in tmux on macOS.
Ludovic Chabant <ludovic@chabant.com>
parents:
376
diff
changeset
|
26 |
468 | 27 set -s escape-time 0 |
28 | |
29 bind - split-window -v | |
30 bind | split-window -h | |
31 | |
32 # Workaround to allow accessing OSX pasteboard | |
33 # set-option -g default-command "reattach-to-user-namespace -l zsh" | |
34 | |
35 # Vi copypaste | |
36 # setw -g mode-keys vi | |
37 # unbind p | |
38 # bind p paste-buffer | |
39 # bind-key -T copy-mode-vi v send-keys -X begin-selection | |
40 # bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel |