-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
31 lines (25 loc) · 1.04 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
# Set $TERM (default was 'screen') (fixes italic rendering and unknown terminal
# type errors)
set -g default-terminal "st-256color"
set -ga terminal-overrides ",st-256color:Tc"
# Undercurl
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
# Set escape time to 0ms
set -s escape-time 0
# Force emacs keybinds
set -g mode-keys emacs
set -g status-keys emacs
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# Copy to clipboard
bind -Tcopy-mode C-w send -X copy-pipe-and-cancel "xclip -i"
bind -Tcopy-mode M-w send -X copy-pipe-and-cancel "xclip -i"
bind -Tcopy-mode MouseDragEnd1Pane send -X copy-pipe-and-cancel "xclip -i"
# DWM matching colorscheme
set -g status-bg "#343C44"
set -g status-fg "#DCDCCC"
set -g pane-active-border-style fg="#343C44"
set -g window-status-current-style fg=white,bold,bg="#343C44"