diff options
author | Griffin Smith <root@gws.fyi> | 2020-05-26T14·44-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2020-05-26T14·44-0400 |
commit | 82c0404c4fccc163fab4efa11f0fb8986de8858d (patch) | |
tree | 89911ccd4fe73a421e9063ed083c9c53dd67ba79 | |
parent | 9036dc7c32739d302cdd6fe51fe2d01418a99c9d (diff) |
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)
-rw-r--r-- | home/modules/shell.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/home/modules/shell.nix b/home/modules/shell.nix index be084793f377..69672473af23 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 ''; }; |