-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux-osx.conf
30 lines (26 loc) · 1.33 KB
/
tmux-osx.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
# This File is : tmux-osx.conf (aliased to ~/.tmux.conf on OSX)
# source the non-osx specific tmux.conf file
source-file ~/.tmux-conf/tmux.conf
# COPY/PASTE: set 'v' to begin visual selection and 'y' to yank
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'V' send -X rectangle-toggle
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send -X copy-selection-and-cancel
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
bind-key -T copy-mode-vi Escape send -X cancel
# Configure copy mode with vi keybindings; these override keybindings already
# set in the non-osx specific config file (tmux.conf)
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "pbcopy"
# Terminal type configuration
# If wezterm terminfo is not yet installed, run the following command:
# tempfile=$(mktemp) \
# && curl -o $tempfile https://raw.githubusercontent.com/wez/wezterm/master/termwiz/data/wezterm.terminfo \
# && tic -x -o ~/.terminfo $tempfile \
# && rm $tempfile
# Reference: https://wezfurlong.org/wezterm/faq.html#how-do-i-enable-undercurl-curly-underlines
set -g default-terminal "wezterm"
set -sg terminal-features ",*:RGB"
set -sg terminal-overrides ",*:Tc"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'