diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-29 14:29:22 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-29 14:29:22 +0100 |
commit | 0fb2197de0f0ba6ea8c68ae7ffc6751f23c6be55 (patch) | |
tree | 229eda07a5892880780ffbbb2eaef5abde5e13ea /user-profiles | |
parent | 49b2b0cd849a3acd040a40b5be98875b58a236b0 (diff) | |
download | nixos-0fb2197de0f0ba6ea8c68ae7ffc6751f23c6be55.tar nixos-0fb2197de0f0ba6ea8c68ae7ffc6751f23c6be55.tar.gz nixos-0fb2197de0f0ba6ea8c68ae7ffc6751f23c6be55.tar.bz2 nixos-0fb2197de0f0ba6ea8c68ae7ffc6751f23c6be55.tar.xz nixos-0fb2197de0f0ba6ea8c68ae7ffc6751f23c6be55.zip |
zsh: dumb terminals
Diffstat (limited to 'user-profiles')
-rw-r--r-- | user-profiles/zsh/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
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 { | |||
17 | src = pkgs.zsh-powerlevel10k; | 17 | src = pkgs.zsh-powerlevel10k; |
18 | } | 18 | } |
19 | ]; | 19 | ]; |
20 | initExtraFirst = '' | ||
21 | if [[ $TERM == "dumb" ]]; then | ||
22 | unsetopt zle | ||
23 | PS1='$ ' | ||
24 | return | ||
25 | fi | ||
26 | ''; | ||
20 | initExtraBeforeCompInit = '' | 27 | initExtraBeforeCompInit = '' |
21 | source "${cfg.home.homeDirectory}/${p10kZsh}" | 28 | source "${cfg.home.homeDirectory}/${p10kZsh}" |
22 | ''; | 29 | ''; |