-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
52 lines (41 loc) · 1.6 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
# Let's use Screen-style prefix!
unbind C-b
set-option -g prefix C-a
bind a send-prefix
# Let's use an italic-capable conf! (See Readme.)
set -g default-terminal "tmux-256color"
set -as terminal-overrides ',xterm*:sitm=\E[3m'
# Let's number from one (easier left-hand access).
set -g base-index 1
set-window-option -g pane-base-index 1
# And repack windows when we close one.
set-option -g renumber-windows on
# Let's get mouse integration working.
set-option -g mouse on
# And to enable scrolling up and down:
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind -n WheelDownPane select-pane -t= \; send-keys -M
# Let's show time and date better in the status bar
set-option -g status-right-length 90
set-option -g status-right '#(wifi-signal-strength) || Batt: #{battery_percentage} #{battery_remain} || %Y-%m-%d %H:%M'
# Let's easily toggle pane synchronization
bind i setw synchronize-panes
bind + run-shell $HOME/bin/tmux-phi
# List of plugins
# Supports `github_username/repo` or full git repo URLs
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-battery \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-pain-control \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-copycat \
tmux-plugins/tmux-urlview \
'
# Initializes TMUX plugin manager.
# Keep this line at the very bottom of tmux.conf.
run-shell '~/.tmux/plugins/tpm/tpm'
# Don't chdir on new panes/windows, despite what tmux-pain-control says.
unbind -T prefix c
bind-key c new-window -c ~