-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
77 lines (63 loc) · 1.87 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
### Aliases ###
# set: set-option
# setw: set-window-option
# source: source-file
# bind: bind-key
# send: send-key
# selectp: select-pane
# killp: kill-pane
set -g default-shell "/usr/bin/fish"
### Behavior ###
# enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# vi mode
setw -g mode-keys vi
# terminal properties
set -sa terminal-overrides ',xterm-256color:RGB'
### Key Mappings ###
# change prefix to C-x
unbind C-b
set -g prefix C-x
bind C-x send-prefix
bind x send C-x
# reload and edit tmux configuration
unbind t
bind t source ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
bind T split-window "vim ~/.tmux.conf"
# kill pane
unbind q
bind q killp
# remap splits to vim
unbind s
unbind v
unbind c-s
unbind c-v
bind s split-window -v -c '#{pane_current_path}'
bind v split-window -h -c '#{pane_current_path}'
bind c-s split-window -v -c '#{pane_current_path}'
bind c-v split-window -h -c '#{pane_current_path}'
# enter copy mode
bind C-X copy-mode
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-selection
bind -Tcopy-mode-vi Escape send -X cancel
unbind p
bind p paste-buffer
### Appearance ###
# solarized colorscheme
# set -g @colors-solarized 'dark'
# highlight when prefix is pressed
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
set -g @prefix_highlight_show_copy_mode 'on'
### Plugins ###
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'seebi/tmux-colors-solarized'
# initialize tmux plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'