aboutsummaryrefslogtreecommitdiff
path: root/tmux.conf
blob: a1ee58c6f7060ba32efbfd3dd387251a61c7f7ba (plain)
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
# .tmux.conf
# 31jan2010  +chris+
# 30mar2016  +chris+  cleanup
# 28sep2017  +duncan+ imported

# general
set -g base-index 1
set -g history-limit 5000
# don't spawn login shells
set -g default-command "$SHELL"
set -g terminal-overrides "rxvt-unicode-256color:sitm@"
set -ag update-environment " GNOME_KEYRING_PID GNOME_KEYRING_SOCKET"
setw -g aggressive-resize on

# style
set -g status-style fg=white,bg=black
setw -g window-status-current-style bold
set -g message-style fg=white,bg=black,bold
set -g pane-active-border-style fg=default,bg=default
set -g status-interval 0
set -g status-right-length 0
set -g set-titles on
set -g set-titles-string "#H: #W"

# screen-like things
set -g prefix ^A
bind C-a last-window
bind a send-prefix
bind M-a next-window -a
bind c new-window -c ~
bind k confirm-before -p "kill-window #W? (y/n)" kill-window
bind K kill-window
bind S split-window

# custom bindings
bind 0 select-window -T -t ':.$'
bind C move-window -r
bind R source-file ~/.tmux.conf
bind h split-window -h
bind v split-window
bind . neww -c '#{pane_current_path}'
bind ^R neww rc

bind -n C-left previous-window
bind -n C-right next-window

bind -n M-PPage copy-mode -u