-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
119 lines (93 loc) · 3.21 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# This config is mostly based on based on tobstarr/tobstarr.com
set -g repeat-time 1000
set-option -g prefix C-a
set -s escape-time 1
set -g base-index 1
set -g pane-base-index 1
# mouse stuff
# setw -g mode-mouse off
# set -g mouse-select-pane off
# set -g mouse-resize-pane off
# set -g mouse-select-window off
bind -r a next-window
bind -r Right next-window
bind -r A previous-window
bind -r Left previous-window
# status
set -g status-left-length 40
set -g status-left "#{simple_git_status}"
set -g status-right-length 40
set -g status-justify centre
set -g status-interval 10
unbind %
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# VIM setting
# splitting
bind | split-window -c "#{pane_current_path}" -h
bind v split-window -c "#{pane_current_path}" -h
bind - split-window -c "#{pane_current_path}" -v
bind s split-window -c "#{pane_current_path}" -v
bind-key l choose-session
bind-key n new-session
bind c new-window -c "#{pane_current_path}"
# resizing
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r H resize-pane -L 1
bind -r J resize-pane -D 1
bind -r K resize-pane -U 1
bind -r L resize-pane -R 1
setw -g mode-keys vi
set-option -g status-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'V' send -X select-line
bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "xsel -b -i"
bind p paste-buffer
bind Escape copy-mode
bind C-v run "tmux set-buffer -- \"$(xsel -b -o)\"; tmux paste-buffer"
# set-option -g default-terminal "screen-256color"
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",*256col*:Tc"
# set -g pane-border-fg default
# set -g pane-border-bg black
# set -g pane-active-border-fg green
# set -g pane-active-border-bg default
# set -g message-fg white
# set -g message-bg black
# set -g message-attr bright
setw -g monitor-activity on
set -g visual-activity on
# send double C-a to e.g. shell
bind C-a send-prefix
# set-option -g default-shell /bin/bash
# zooming in and out
unbind Up
bind Up new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp
unbind Down
bind Down last-window \; swap-pane -s tmp.1 \; kill-window -t tmp
# set-option -g word-separators " "
# set -g default-terminal "xterm-256color"
# set -ga terminal-overrides ",xterm-256color:Tc"
set -g pane-border-style 'bg=black,fg=#1E272C'
set -g pane-active-border-style 'bg=black,fg=#1E272C'
set -g status-style 'bg=#1E272C,fg=#6A7D89'
# set-window-option -g window-status-current-bg '#1E272C'
# set-window-option -g window-status-current-fg cyan
set -wg mode-style 'bg=cyan,fg=black'
set -g message-style 'bg=black,fg=cyan'
set -g clock-mode-colour cyan
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'kristijanhusak/tmux-simple-git-status'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
set -g @open-S 'C-s'
set -g @open-S 'https://www.google.com/search?q='