From f1da7f4c7894b66368c3c58166bf27fa559f8796 Mon Sep 17 00:00:00 2001 From: histalek Date: Thu, 16 Dec 2021 15:46:28 +0100 Subject: [PATCH] zsh: Set TERM for max compatibility I'm working with a lot of different systems over ssh which don't always have the terminfo available (e.g. alacritty, kitty, foot) and this seems to be the easiest way to solve this. --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index 444f463..926c085 100644 --- a/.zshrc +++ b/.zshrc @@ -44,6 +44,11 @@ source $ZSH/oh-my-zsh.sh ### User configuration +# Set TERM for with or without TMUX +# http://www.economyofeffort.com/2014/07/04/zsh/ +export TERM=xterm-256color +[ -n "$TMUX" ] && export TERM=screen-256color + setopt completealiases prompt_context(){}