From d6c5e5c16de3febfd4d8d530724cab97396ec7d4 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 19 Feb 2023 06:15:24 +0000 Subject: [PATCH] refactor(wezterm): set TERM properly for wezterm --- dot_config/wezterm/wezterm.lua | 4 ++++ dot_zshrc | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dot_config/wezterm/wezterm.lua b/dot_config/wezterm/wezterm.lua index 1b25865..18dcd0b 100644 --- a/dot_config/wezterm/wezterm.lua +++ b/dot_config/wezterm/wezterm.lua @@ -132,6 +132,10 @@ wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_wid end) return { + set_environment_variables = { + ZVM_TERM = "xterm-256color" + }, + term = "wezterm", color_scheme = "Catppuccin Mocha", font = wezterm.font_with_fallback({ "VictorMono Nerd Font" }), font_size = 13, diff --git a/dot_zshrc b/dot_zshrc index d42c815..a746185 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -1,7 +1,7 @@ # vim:ft=zsh:fenc=utf-8 # Shell Integration -# source "$HOME/.config/wezterm/wezterm.sh" +source "$HOME/.config/wezterm/wezterm.sh" # Prompt eval "$(starship init zsh)" @@ -35,9 +35,6 @@ antigen apply alias magit="nvim '+Neogit kind=replace'" alias clipboard='xclip -sel clip' -# Forcing 256 bit colour -export TERM=xterm-256color - # Keep History export HISTFILE="$HOME/.zhistory" export HISTSIZE=10000