From 2f68e86ce6b6018828bb52098c72aa464d9120ca Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Wed, 30 May 2018 22:27:24 -0400 Subject: zsh: only do promptInit when TERM!=dumb This allows tramp to be used correctly when default shell is zsh. --- nixos/modules/programs/zsh/zsh.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nixos/modules') diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index f689250dc61f..662b463d572e 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -69,7 +69,9 @@ in promptInit = mkOption { default = '' - autoload -U promptinit && promptinit && prompt walters + if [ "$TERM" != dumb ]; then + autoload -U promptinit && promptinit && prompt walters + fi ''; description = '' Shell script code used to initialise the zsh prompt. -- cgit 1.4.1