diff --git a/.zshrc b/.zshrc index 5e030b2..090f79f 100644 --- a/.zshrc +++ b/.zshrc @@ -99,10 +99,12 @@ setup_term_integration # term fixes -alias sudo="sudo TERM=xterm-256color" -term_color() { - export TERM=xterm-256color -} +if [[ "$TERM" == "xterm-kitty" ]] || [[ "$TERM" == "xterm-iterm" ]]; then + alias sudo="sudo TERM=xterm-256color" + term_color() { + export TERM=xterm-256color + } +fi # completion