-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdot_tmux.conf
More file actions
72 lines (51 loc) · 1.77 KB
/
Copy pathdot_tmux.conf
File metadata and controls
72 lines (51 loc) · 1.77 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
# vim: ft=tmux
setw -g mode-keys vi
set -g default-terminal "screen-256color"
unbind -T prefix C-c
unbind -T copy-mode C-c
unbind -T copy-mode-vi C-c
unbind C-b
set -g prefix C-f
# bind z send-keys C-z
# bind C-z last-window
# Reload config
bind R source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# Window management
bind | split-window -h # horizontal
bind - split-window -v # vertical
bind h select-pane -L
bind l select-pane -R
bind j select-pane -D
bind k select-pane -U
bind ` select-window -t 0
set -sg escape-time 0
# Scrollback buffer size increase
set -g history-limit 100000
# Enable clipboard and copy
set -g mouse on
set -g set-clipboard on
setw -g mode-keys vi
bind -T copy-mode-vi y send -X copy-selection-and-cancel
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel
# Use up and down arrows for temporary "maximize"
unbind Up; bind Up resize-pane -Z; unbind Down; bind Down resize-pane -Z
# Select pane by number and maximize
bind 0 select-pane -t 0 \; resize-pane -Z
bind 1 select-pane -t 1 \; resize-pane -Z
bind 2 select-pane -t 2 \; resize-pane -Z
bind 3 select-pane -t 3 \; resize-pane -Z
bind 4 select-pane -t 4 \; resize-pane -Z
unbind Space
set -g main-pane-width 50%
bind Space split-window \; select-layout main-vertical \; swap-pane -U
# status line
set -g status-left-length 30
set -g status-right " #H | %I:%M %m/%d "
set -g status-left "#[fg=colour255,bg=colour57] #S #[bg=colour255] "
set -g status-style fg=colour57,bg=colour255
set -g pane-border-style fg=colour238
set -g pane-active-border-style fg=colour141,bold
set -g pane-border-lines single
if-shell '[[ -e ~/.tmux.conf.local ]]' 'source-file ~/.tmux.conf.local'
set-option -g default-command "arch -arch arm64 /bin/zsh"