-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
96 lines (76 loc) · 3.01 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
set -g mouse off
set -g visual-activity on
setw -g monitor-activity on
set-option -g prefix C-a
set-window-option -g mode-keys vi
# C-b is not acceptable -- Vim uses it
unbind C-b
# cycle through panes in window
bind -n M-z select-pane -t :.+
# unbind M-space
bind C-a send-prefix
# bind-key C-a last-window
bind h break-pane -d
bind l copy-mode
bind -r N previous-window
unbind d
bind -r M-h resize-pane -L 2
bind -r M-j resize-pane -D 2
bind -r M-k resize-pane -U 2
bind -r M-l resize-pane -R 2
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
# bind -n M-l select-pane -R
bind \\ split-window -c "#{pane_current_path}" -h
bind - split-window -c "#{pane_current_path}" -v
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
unbind '"'
unbind %
unbind [
set -g set-clipboard on
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xsel -i -b'
bind -T copy-mode-vi v send-keys -X begin-selection
# Allows for faster key repetition
set -s escape-time 0
# set-window-option -g aggressive-resize
setw -g aggressive-resize on
setw -g monitor-activity on
set -g visual-activity on
set -g pane-active-border-style "bg=default fg=0"
set -g pane-border-style "bg=default fg=0"
set -g status-left-length 100
set -g status-left "#[$_POWERLINE_SESSION_COLOR]#[$_POWERLINE_SESSION_HARD_DIVIDER_NEXT_COLOR]$_POWERLINE_LEFT_HARD_DIVIDER#(env \"\$POWERLINE_COMMAND\" tmux left -R pane_id=\"`tmux display -p '#D'`\")"
# switch panes using Alt-arrow without prefix
is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind -n M-Left if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind -n M-Down if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind -n M-Up if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind -n M-Right if-shell "$is_vim" "send-keys C-l" "select-pane -U"
bind -n M-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind -n M-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind -n M-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind -n M-l if-shell "$is_vim" "send-keys C-l" "select-pane -U"
bind j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind o command-prompt -p "send pane to:" "join-pane -t '%%'"
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-urlview'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @open 'O'
set -g @open-editor 'o'
set -g @open-S 'https://www.google.com/search?q='
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'jmsdrh/tmux-pane-marks'
set -g @tmux_pane_marks_keys '12345'
set -g default-shell /bin/zsh
set -g status off
run -b ~/.tmux/plugins/tpm/tpm
run-shell ~/.tmux/plugins/tmux-open/open.tmux
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
set-option -g set-titles on
set -g focus-events on
set-option -g set-titles-string "#T"
set -g default-terminal "xterm-kitty"
set-option -ga terminal-overrides ",xterm-kitty:Tc"