Make Tramp work

per
https://wxchen.wordpress.com/2012/05/20/getting-tramp-in-emacs-to-work-with-zsh-as-default-shell/,
make the PS1 etc. properly work with Tramp so I can edit stuff over
ssh (it's working quite well)
This commit is contained in:
Griffin Smith 2020-05-26 10:44:00 -04:00
parent 9036dc7c32
commit 82c0404c4f

View file

@ -207,7 +207,14 @@ in {
autoload -U promptinit; promptinit
prompt pure
[[ ! $IN_NIX_SHELL ]] && alsi -l
if [[ "$TERM" == "dumb" ]]; then
unsetopt zle
unsetopt prompt_cr
unsetopt prompt_subst
unfunction precmd
unfunction preexec
export PS1='$ '
fi
'';
};