fix: ghostty export TERM & tmux keybinding

This commit is contained in:
Rasyidan Akbar F. 2025-10-04 23:11:09 +07:00
commit 6e4864d93f
2 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,7 @@
theme = "dracula"; theme = "dracula";
command = command =
"shell:${config.home.profileDirectory}/bin/tmux new-session -A -s ghostty"; "shell:${config.home.profileDirectory}/bin/tmux new-session -A -s ghostty";
keybind = [ "cmd+k=text:\\x01K" ];
}; };
themes.dracula = { themes.dracula = {

View file

@ -18,6 +18,8 @@
''; '';
}]; }];
extraConfig = '' extraConfig = ''
set -s extended-keys on
set -as terminal-features 'xterm-ghostty:extkeys'
set-option -g status-style "bg=#282a36 fg=#f8f8f2" set-option -g status-style "bg=#282a36 fg=#f8f8f2"
set -g status-interval 5 set -g status-interval 5
setw -g automatic-rename on setw -g automatic-rename on
@ -28,6 +30,7 @@
unbind '"' unbind '"'
unbind % unbind %
set -g display-panes-time 1500 set -g display-panes-time 1500
bind K send-keys -R \; send-keys C-l \; clear-history
''; '';
}; };
} }