-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmux.conf
82 lines (79 loc) · 2.11 KB
/
tmux.conf
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# $Arch: tmux.conf,v 1.003 2018/12/01 09:27:24 kyau Exp $
# General Settings {{{
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
# increase scrollback buffer size
set -g history-limit 50000
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# refresh 'status-left' and 'status-right' more often
set -g status-interval 5
# upgrade $TERM
set -g default-terminal "screen-256color"
# focus events enabled for terminals that support them
set -g focus-events on
# super useful when using "grouped sessions" and multi-monitor setup
setw -g aggressive-resize on
# mouse click selects panes
#set -g mouse-select-pane on
# enable mouse scrolling
#set-window-option -g mode-mouse on
# listen for activity on all windows
set -g bell-action any
# start window indexing at one (default: 0)
set -g base-index 1
# 256-colour terminal compatibility
set -g default-terminal "tmux-256color"
# disable window renaming
setw -g automatic-rename off
# enable wm titles
set -g set-titles on
# }}}
# Keybindings {{{
# rebind prefix to CTRL-A
unbind-key C-b
set-option -g prefix C-a
# send prefix to client
bind-key C-a send-prefix
# toggle last window
bind-key C-a last-window
# reload
bind-key R source-file ~/.tmux.conf
# detach
bind-key d detach
bind-key C-d detach
# detach w/ choice
bind-key D choose-client
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# new window
bind-key C-b new-window
bind-key b new-window
# next window
bind-key -r Space next-window
bind-key -r "C-Space" next-window
# prev window
bind-key BSpace previous-window
# rename window
bind-key A command-prompt "rename-window %%"
# displays
bind-key * list-clients
# re-display
bind-key r refresh-client
# quit
bind-key \\ confirm-before kill-server
# }}}
# TMUX plugin manager {{{
# list of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'kyau-tmux'
set -g @kyau_tmux_no_patched_font "1"
# initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'
# }}}
# vim: ft=tmux ts=4 sw=4 noet :