From cc9e39ca1c4fcd1ae3f2061c6abf41a7a9412bdf Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 14 Aug 2017 10:50:52 -0700 Subject: [PATCH] skip rest of zshrc if this is a dumb terminal (TRAMP) --- .zsh/zshrc/10_switch_term | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.zsh/zshrc/10_switch_term b/.zsh/zshrc/10_switch_term index a6397e0..bb2a234 100644 --- a/.zsh/zshrc/10_switch_term +++ b/.zsh/zshrc/10_switch_term @@ -3,6 +3,14 @@ # # Switches from rxvt to xterm if the defined terminal does not exist +## if this is a dump term, return without setting up anything +if [[ $TERM == "dumb" ]]; then + unsetopt zle + PS1='$ ' + return +fi; + + if [[ "$TERM" =~ "rxvt-" ]] && which tput >/dev/null 2>&1; then if [[ -z "$(tput longname 2>/dev/null)" ]]; then TERM="xterm-${TERM##rxvt-}" -- 2.39.5