From 0fb2197de0f0ba6ea8c68ae7ffc6751f23c6be55 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 29 Dec 2021 14:29:22 +0100 Subject: zsh: dumb terminals --- user-profiles/zsh/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'user-profiles/zsh/default.nix') diff --git a/user-profiles/zsh/default.nix b/user-profiles/zsh/default.nix index 88873c1a..daeb7e82 100644 --- a/user-profiles/zsh/default.nix +++ b/user-profiles/zsh/default.nix @@ -17,6 +17,13 @@ in { src = pkgs.zsh-powerlevel10k; } ]; + initExtraFirst = '' + if [[ $TERM == "dumb" ]]; then + unsetopt zle + PS1='$ ' + return + fi + ''; initExtraBeforeCompInit = '' source "${cfg.home.homeDirectory}/${p10kZsh}" ''; -- cgit v1.2.3