From 1fccc1e05ed970a82118dd3d66415929b9eb6e79 Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Sat, 28 Mar 2026 01:23:53 +0300 Subject: [PATCH] tmux configuration update for colors, copy and shift-enter --- dot_tmux.conf | 24 ++++++++++++++++++++- private_dot_config/private_fish/config.fish | 5 +++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/dot_tmux.conf b/dot_tmux.conf index 277c1e5..ac2a4c3 100644 --- a/dot_tmux.conf +++ b/dot_tmux.conf @@ -12,9 +12,31 @@ bind C-a send-prefix -2 # reload configuration bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced' -set -g default-terminal "xterm-kitty" +set -g default-terminal "tmux-256color" +set -s extended-keys on +set -s set-clipboard on +set -as terminal-features ",xterm-kitty:RGB" +set -as terminal-features ",xterm-kitty:clipboard" +set -as terminal-features ",xterm-kitty:extkeys" +set -as terminal-features ",xterm:RGB" +set -as terminal-features ",xterm:clipboard" +set -as terminal-features ",xterm-ghostty:RGB" +set -as terminal-features ",xterm-ghostty:clipboard" +set -as terminal-features ",xterm-ghostty:extkeys" +set -as terminal-features ",xterm-256color:RGB" +set -as terminal-features ",xterm-256color:clipboard" +set -as terminal-features ",xterm-256color:extkeys" +set -as terminal-features ",screen-256color:clipboard" +set -as terminal-overrides ",xterm-256color:Ms=\\E]52;c;%p2%s\\007" +set -as terminal-overrides ",screen-256color:Ms=\\E]52;c;%p2%s\\007" +set -g allow-passthrough on set-window-option -g mode-keys vi +# Copy selections via tmux's OSC 52 clipboard support. +bind-key -T copy-mode-vi Enter send-keys -X copy-selection-and-cancel +bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection-and-cancel + # Nova Config set -g @nova-nerdfonts true set -g @nova-nerdfonts-left  diff --git a/private_dot_config/private_fish/config.fish b/private_dot_config/private_fish/config.fish index 01b812a..25df07c 100644 --- a/private_dot_config/private_fish/config.fish +++ b/private_dot_config/private_fish/config.fish @@ -36,6 +36,7 @@ alias b "bat -p" alias l "ls -la" alias lll "ls -latr" alias lg "lazygit" +alias claude "env -u TMUX claude" # abbreviations abbr lsn littlesnitch @@ -146,3 +147,7 @@ fish_add_path $HOME/.cache/lm-studio/bin source ~/.orbstack/shell/init.fish 2>/dev/null || : fish_add_path $HOME/.antigravity/antigravity/bin + +# Added by OrbStack: command-line tools and integration +# This won't be added again if you remove it. +source ~/.orbstack/shell/init2.fish 2>/dev/null || :