From e2adbf5e10bfd8766f38c9fb0daa4441b8297d5a Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Tue, 13 Oct 2020 20:44:36 +0100 Subject: [PATCH] fix(emacs): stop tramp from hanging When editing remote files in emacs via tramp it would just hang when the ssh connection was made See: https://www.emacswiki.org/emacs/TrampMode#toc9 --- site-modules/core/files/zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site-modules/core/files/zshrc b/site-modules/core/files/zshrc index f240321..0a8d1d6 100644 --- a/site-modules/core/files/zshrc +++ b/site-modules/core/files/zshrc @@ -1,4 +1,7 @@ -# Path to your oh-my-zsh installation. +# +# Stop emacs tramp from hanging when working remotly +# +[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return # # Set oh-my-zsh path