]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .tmux.conf
.tmux.conf: Initial commit
[dotfiles.git] / .tmux.conf
1 # -------------------------------------------------------------------
2 # Settings
3 # -------------------------------------------------------------------
4 setw -g utf8 on # use UTF-8
5 set -g history-limit 15000 # increase scrollback lines
6 set -g default-command 'bash' # no login shell
7 set -g renumber-windows on # renumber windows sequentially after closing any of them
8 setw -g monitor-activity on # monitor for activity in windows
9 set -g visual-activity on # display status line message for windows with activity (monitor-activity)
10 set -g aggressive-resize on # smart window resizing when multiple attached clients
11 set -sg escape-time 50 # shorter Esc/Alt disambiguation timeout
12
13 # update program titlebar caption
14 set -g set-titles on
15 set -g set-titles-string '[#S:#I.#P #H] #W'
16
17 # status bar
18 set -g status-utf8 on
19 set -g status-style none
20 set -g status-right '#[fg=blue]#(whoami)@#h (#S:#I.#P)'
21 setw -g window-status-style 'fg=brightblack'
22 setw -g window-status-current-style 'bg=brightblack,bold,fg=brightwhite'
23
24 # -------------------------------------------------------------------
25 # Key Bindings
26 # -------------------------------------------------------------------
27 # act like GNU screen
28 unbind C-b
29 set -g prefix C-a
30 bind-key a send-prefix
31 bind-key A command-prompt "rename-window %%"
32 bind-key C-a last-window
33 bind-key C-c new-window # same as C-a c
34 bind-key C-d detach # same as C-a d
35 bind-key C-n next-window # same as C-a n
36 bind-key C-p previous-window # same as C-a p
37 bind-key Escape copy-mode
38 unbind Space
39
40 # vim style movement
41 setw -g mode-keys vi
42 bind-key h select-pane -L
43 bind-key j select-pane -D
44 bind-key k select-pane -U
45 bind-key l select-pane -R
46 bind-key -r C-j resize-pane -D 1
47 bind-key -r C-k resize-pane -U 1
48 bind-key -r C-h resize-pane -L 1
49 bind-key -r C-l resize-pane -R 1
50
51 # intuitive window splitting
52 bind | split-window -h
53 bind \ split-window -h
54 bind - split-window -v
55
56 bind R source-file ~/.tmux.conf