-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.tmux.conf
45 lines (35 loc) · 1.48 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
unbind C-b
set -g prefix ";"
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
set -g mouse on
set-option -g mouse on
set-option -sg escape-time 10
set-option -g focus-events on
set -sg terminal-overrides ",*:RGB"
set -g history-limit 100000
unbind n # DEFAULT KEY: Move to next window
unbind w # DEFAULT KEY: change current window interactively
bind n command-prompt "rename-window '%%'"
bind w new-window -c "#{pane_current_path}"
set -g base-index 1
set-window-option -g pane-base-index 1
set-window-option -g mode-keys vi
# theme
set -g pane-border-style fg='#757581'
set -g pane-active-border-style fg='#e29eca'
set -g message-style bg='#252525',fg='#ea83a5'
set -g status-style bg='#252525',fg='#aca1cf'
set -g status-interval 1
set -g status-right '#[fg=#8be9fd,bg=#252525] #(tmux-mem-cpu-load -g 5 --interval 2) '
set -ga status-right '#[fg=#ff79c6,bg=#252525] #(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") '
set -ga status-right '#[fg=#bd93f9,bg=#252525] %a %H:%M:%S'
### copy & paste -------------------------------------------------------
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"