commit 11f3faa973d13889bc27e4cd494b6c2c4c6886f6
parent 50305348290751cff601829120b16d90a874cff0
Author: Vincent Demeester <vincent@sbr.pm>
Date: Wed, 14 Aug 2019 15:11:27 +0200
profiles.zsh: fix emacs tramp with zsh
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/modules/profiles/zsh.nix b/modules/profiles/zsh.nix
@@ -102,6 +102,16 @@ in
print -P "\033AnSiTu %n"
print -P "\033AnSiTc %d"
fi
+ if [[ "$TERM" == "dumb" || "$TERM" == "emacs" ]]
+ then
+ TERM=eterm-color
+ unsetopt zle
+ unsetopt prompt_cr
+ unsetopt prompt_subst
+ unfunction precmd
+ unfunction preexec
+ PS1='$ '
+ fi
'';
profileExtra = ''
if [ -e /home/vincent/.nix-profile/etc/profile.d/nix.sh ]; then . /home/vincent/.nix-profile/etc/profile.d/nix.sh; fi