-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
62 lines (50 loc) · 1.68 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
# reset prefix
unbind C-b
set -g prefix C-Space
# reduce vim delay
set -sg escape-time 0
# reload config
bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded"
# colors and styles
set -g status-style "fg=blue bg=default"
set -g pane-border-style fg=white
set -g pane-active-border-style fg=blue
set-window-option -g window-status-current-style fg=magenta
set-option -g status-left ""
set-option -g status-right "%d %B %Y, the time is %R"
set-option -g window-status-format "#{window_index}"
set-option -g window-status-current-format "#{window_index}"
# don't ask, just kill it
bind x kill-pane
# start numeration at 1 for easier navigation
set -g base-index 1
# Mouse options
set -g mouse on
# Act like Vim
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'
# Vim-like pane navigation
bind C-h select-pane -L
bind h select-pane -L
bind C-j select-pane -D
bind j select-pane -D
bind C-k select-pane -U
bind k select-pane -U
bind C-l select-pane -R
bind l select-pane -R
# Vim-like splitting (and in the same path)
bind s split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
# cht.sh
bind i run-shell "tmux neww tmux-cht.sh"
# TODO seems redundant, but see if it's useful later
# load last session on startup
# set -g @continuum-restore 'on'
# List of plugins
# set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-sensible'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# run '~/.tmux/plugins/tpm/tpm'