From 82c0404c4fccc163fab4efa11f0fb8986de8858d Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Tue, 26 May 2020 10:44:00 -0400 Subject: [PATCH] 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) --- home/modules/shell.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/home/modules/shell.nix b/home/modules/shell.nix index be084793f..69672473a 100644 --- a/home/modules/shell.nix +++ b/home/modules/shell.nix @@ -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 ''; };