-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
38 lines (30 loc) · 1.58 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
# Tmux starts login-shells by default. The following command force it to spawn only non-login shells
set -g default-command "${SHELL}"
# Inside tmux TERM must be "screen", "tmux" or similar (such as "tmux-256color").
# https://github.com/tmux/tmux/wiki/FAQ#why-do-you-use-the-screen-terminal-description-inside-tmux
set -g default-terminal "tmux-256color"
# Apply Tc
# https://github.com/tmux/tmux/issues/696
# https://github.com/dandavison/delta/blob/master/README.md#24-bit-color-truecolor
set -ga terminal-overrides ",xterm-256color:Tc"
set -g mouse on
#bind y run 'tmux show-buffer | xclip -in -selection clipboard >/dev/null 2>&1'
# Switch back/forth between opened windows. It requires custom Alacritty key bindings.
bind-key -n '0xff' next-window
bind-key -n '0xfe' previous-window
# Increase scrollback buffer
set-option -g history-limit 5000
bind-key a new-session
bind-key I new-window \; rename-window 'S:M:'
bind-key U new-session \; rename-session 'UM' \; rename-window 'S:M:'
# y to copy
bind -T copy-mode-vi y send -X copy-pipe "reattach-to-user-namespace pbcopy"\; display-message "copied to system clipboard"
# don't jump to bottom on mouse select - when vi-mode enabled
unbind -T copy-mode-vi MouseDragEnd1Pane
# https://powerline.readthedocs.io/en/latest/usage/other.html#tmux-statusline
# run-shell "powerline-daemon -q"
source ${HOME}/.config/tmux/powerline/powerline/bindings/tmux/powerline.conf
# Enable OSC8 hyperlink. Available since tmux 3.4
# https://github.com/Alhadis/OSC8-Adoption
# https://raw.githubusercontent.com/tmux/tmux/3.4/CHANGES
set -ga terminal-features "*:hyperlinks"