forked from elenapan/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
38 lines (29 loc) · 1.25 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
# Refer to the man page of tmux for more options and styling
# Remap prefix to 'C-a' (Control + a) and bind 'C-a C-a' to type 'C-a'
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Reload the config file with C-a r
unbind r
bind r source-file ~/.tmux.conf
# Enable mouse support. Supports selecting and resizing panes, copying text,
# and changing windows using the status line.
set -g mouse on
# Set the correct value for TERM on a 256 color terminal
set -g default-terminal "tmux-256color"
# Change the background and foreground colors of the status line
# set -g status-style bg=black,fg=green
set -g status-style bold,bg=default,fg=green
# Change the pane border colors
set -g pane-border-style fg=brightblack
set -g pane-active-border-style fg=brightmagenta
# Set the timeout to a low value (in ms). This was a recommendation from
# neovim's `checkhealth` command.
set -sg escape-time 10
# Set RGB capability to enable true colors. This is another neovim
# recommendation. I don't know what this does.
set -sa terminal-overrides ',xterm-256color:RGB'
# Vim style copy and paste
unbind p
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null"
bind-key p run "xclip -o -sel clip | tmux load-buffer - ; tmux paste-buffer"