change TERM to xterm-256color

This commit is contained in:
datsudo 2025-06-05 13:14:10 +08:00
parent 96d27327da
commit 096917762a

View File

@ -2,9 +2,7 @@
let let
cfg = config.subs.tmux; cfg = config.subs.tmux;
in in { options.subs.tmux = {
{
options.subs.tmux = {
enable = lib.mkOption { enable = lib.mkOption {
default = false; default = false;
type = lib.types.bool; type = lib.types.bool;
@ -18,7 +16,7 @@ in
baseIndex = 1; baseIndex = 1;
mouse = true; mouse = true;
prefix = "C-Space"; prefix = "C-Space";
terminal = "alacritty"; terminal = "xterm-256color";
plugins = with pkgs.tmuxPlugins; [ plugins = with pkgs.tmuxPlugins; [
{ {
plugin = yank; plugin = yank;
@ -49,7 +47,7 @@ in
extraConfig = '' extraConfig = ''
set -sg escape-time 10 set -sg escape-time 10
set -g focus-events on set -g focus-events on
set -sa terminal-features ",alacritty:RGB" set -sa terminal-features ",xterm-256color:RGB"
set -g status-position top set -g status-position top
set -g status-left-length 50 set -g status-left-length 50
set -g mode-keys vi set -g mode-keys vi