-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
76 lines (55 loc) · 1.79 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
set -sg escape-time 1
set -g status on
set -g status-interval 2
set -g status-left-length 60
set -g status-right-length 150
set -g renumber-windows on
set -g history-limit 100000
set -g status-position bottom
set -g set-titles on
set -g set-titles-string "#T"
set -g prefix C-k
unbind C-b
bind C-k send-keys C-k
bind x confirm-before kill-pane
bind -n S-left previous-window
bind -n S-right next-window
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind w kill-pane
bind x confirm kill-window
bind X confirm kill-server
set-option -g default-terminal screen-256color
set-option -ga terminal-overrides ',xterm-256color:Tc'
bind c new-window -c '#{pane_current_path}'
bind v split-window -hc '#{pane_current_path}'
bind - split-window -vc '#{pane_current_path}'
bind C-j switch-client -n
bind C-k switch-client -p
bind C-n command-prompt -p "New session name:" "new-session -s '%%'"
bind C-l run-shell 'tmux source-file ~/.dotfiles/tmux/dawnfox.conf'
bind C-d run-shell 'tmux source-file ~/.dotfiles/tmux/nightfox.conf'
setw -g mouse on
setw -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi V send -X select-line
bind -T copy-mode-vi C-v send -X rectangle-toggle
bind -T copy-mode-vi y send -X copy-selection
bind -T copy-mode-vi Y send -X copy-line
bind C-p paste-buffer
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
run -b '~/.tmux/plugins/tpm/tpm'
if-shell -b '[ "$THEME" = "light" ]' {
source-file ~/.dotfiles/tmux/dawnfox.conf
}
if-shell -b '[ "$THEME" = "dark" ]' {
source-file ~/.dotfiles/tmux/nightfox.conf
}
if-shell "uname -s | grep -q Darwin" "source ~/.dotfiles/tmux/osx.conf"