feat: add ghostty
This commit is contained in:
@@ -15,6 +15,8 @@ bind | splitw -h -c '#{pane_current_path}'
|
||||
set -g default-terminal "screen-256color"
|
||||
set -ga terminal-overrides ",*256col*:Tc"
|
||||
|
||||
set-option -a terminal-features 'xterm-ghostty:RGB'
|
||||
|
||||
# 开启鼠标模式
|
||||
set -g mouse on
|
||||
|
||||
@@ -58,6 +60,16 @@ set -g set-titles-string "#{session_name}"
|
||||
set -s set-clipboard on
|
||||
set -g allow-passthrough on
|
||||
|
||||
# 1. 显式告诉 tmux 你的外壳终端支持 osc9 属性
|
||||
set -as terminal-features ",*:osc9"
|
||||
|
||||
# 2. 强行把底层的 OSC 9 映射为直接穿透的转义包装
|
||||
# \E]9;%p1%s\007 会被 tmux 自动包装成 \033Ptmux;\033]9;...\007\033\\ 发送出去
|
||||
set -as terminal-overrides ",*:OSC 9=..."
|
||||
#set -as terminal-overrides ",screen-256color:XT:OSC 9=\\E]9;%p1%s\\007"
|
||||
set -as terminal-overrides ",screen*:OSC 9=..."
|
||||
set -as terminal-overrides ",xterm*:OSC 9=..."
|
||||
|
||||
# List of plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
|
||||
Reference in New Issue
Block a user