From c142161840af16246a71ba3fe4e688e5684be4b5 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 25 Mar 2024 23:41:19 +0100 Subject: [PATCH] Don't set local var (remains set) --- home/programs/terminal/shell/zsh/rc/fallback_term.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/home/programs/terminal/shell/zsh/rc/fallback_term.zsh b/home/programs/terminal/shell/zsh/rc/fallback_term.zsh index 64e1ee2..7a8c4ae 100644 --- a/home/programs/terminal/shell/zsh/rc/fallback_term.zsh +++ b/home/programs/terminal/shell/zsh/rc/fallback_term.zsh @@ -2,7 +2,6 @@ # fall back to xterm. This fixes SSH connections from unknown terminals if ! infocmp "$TERM" &>/dev/null; then - local original="$TERM" + echo "Setting \$TERM to xterm-256color due to missing terminfo entry for $TERM." export TERM=xterm-256color - echo "TERM set to $TERM due to missing terminfo entry for $original." fi