-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
executable file
·75 lines (53 loc) · 1.74 KB
/
tmux.conf
File metadata and controls
executable file
·75 lines (53 loc) · 1.74 KB
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
#!/usr/bin/zsh
set -g default-terminal "screen-256color"
set -g history-file ~/.tmux_history
set-option -sa terminal-overrides ',xterm:RGB'
unbind C-b
set-option -g prefix `
bind ` send-prefix
set-option -g focus-events on
set-window-option -g pane-base-index 1
set -g base-index 1
set -s escape-time 0
set -g status-right '%a %d %b | %I:%M %p '
setw -g clock-mode-style 12
# thyme
set-option -g status-right '#(cat ~/.thyme-tmux) %a %d %b | %I:%M %p '
set -g status-interval 1
set-option -g pane-border-style fg=colour235
set-option -g pane-active-border-style fg=colour240
set-option -g renumber-windows on
set-option -g status-style bg=colour235,fg=white,dim
# Vi mode
set -g mode-keys vi
# intutive pane splitting
unbind %
bind | split-window -h -c "#{pane_current_path}"
bind '\' split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
bind-key w run "tmux split-window -l 12 'zsh -ci fzf_windows'"
# pane resizing
bind k resize-pane -U 5
bind j resize-pane -D 5
bind h resize-pane -L 5
bind l resize-pane -R 5
# pane helpers
bind Space last-pane
bind = select-layout even-horizontal
# reload config
bind r source-file ~/.tmux.conf \; display "Reloaded .tmux.conf"
# Fix tmux copy
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "pbcopy"
# send prefix to inner tmux
bind-key a send-prefix
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-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-processes ':all:'
# Initializes TMUX plugin manager.
run '~/.tmux/plugins/tpm/tpm'
set -g status-left-length 30