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:
parent
9036dc7c32
commit
82c0404c4f
1 changed files with 8 additions and 1 deletions
|
@ -207,7 +207,14 @@ in {
|
||||||
autoload -U promptinit; promptinit
|
autoload -U promptinit; promptinit
|
||||||
prompt pure
|
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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue