-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
52 lines (45 loc) · 1.73 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
set -g default-terminal "screen-256color"
set -g base-index 1
setw -g pane-base-index 1
set -s escape-time 0
set-option -g allow-rename off
set-option -g mouse on
set -g history-limit 5000
set -g monitor-activity on
set -g default-command fish
bind c new-window -c '#{pane_current_path}'
bind '%' split-window -h -c '#{pane_current_path}'
bind '"' split-window -v -c '#{pane_current_path}'
bind-key -n C-g last-window
# vi-like keybindings
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
bind-key -T copy-mode-vi Escape send -X cancel
color_inactive_fg=colour248
color_inactive_bg=colour235
color_active_fg=colour223
color_active_bg=colour237
setw -g clock-mode-colour $color_inactive_fg
setw -g mode-style fg=$color_inactive_fg,bg=$color_inactive_bg,bold
set -g status-bg $color_inactive_bg
set -g status-fg $color_inactive_fg
setw -g window-status-current-style fg=$color_active_fg,bg=$color_active_bg,bold
set -g message-style fg=$color_inactive_fg,bg=$color_inactive_bg,bold
set -g pane-border-style fg=$color_inactive_bg
set -g pane-active-border-style fg=$color_inactive_fg,bg=default
set -g window-status-activity-style fg=$color_inactive_fg,bg=$color_inactive_bg,none
bind-key w choose-tree -F "#{window_name}"
set-option -g status-right ""
set -g status-left-length 20
if-shell "uname | grep -q Linux" {
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "xclip -selection clipboard -i"
}
if-shell "uname | grep -q Darwin" {
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "pbcopy"
}
source-file -q ~/.config/tmux/local.conf