-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
46 lines (35 loc) · 1.16 KB
/
dot_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
set -g default-terminal "xterm-256color"
# 'C-Space' > 'C-b'
unbind C-b
set-option -g prefix C-Space
bind-key C-Space send-prefix
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'dracula/tmux'
set -g @dracula-plugins "time git"
set -g @dracula-show-timezone false
set -g @dracula-military-time true
# use | or \ to split pane horizontally instead of %
bind-key "|" split-window -h -c "#{pane_current_path}"
bind-key "\\" split-window -fh -c "#{pane_current_path}"
unbind "%"
# use _ or - to split pane vertically instead of "
bind-key "-" split-window -v -c "#{pane_current_path}"
bind-key "_" split-window -fv -c "#{pane_current_path}"
unbind '"'
set -g renumber-windows on
set -g mouse on
set -g set-titles on
set -g set-titles-string "s#S / w#I / #W #T"
# open new window with current path
bind c new-window -c "#{pane_current_path}"
# use r to reload tmux.conf
bind r source-file ~/.tmux.conf
# rebind these so we don't have to confirm
bind-key x kill-pane
bind-key & kill-window
# use k to clear pane
bind-key k send-keys C-l \; clear-history
run -b '~/.tmux/plugins/tpm/tpm'