diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-05-30 22:27:24 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-05-31 12:34:16 -0400 |
commit | 2f68e86ce6b6018828bb52098c72aa464d9120ca (patch) | |
tree | 220674a34920a22bd2da95bfa24accddd306a876 /nixos/modules/programs/zsh/zsh.nix | |
parent | ee1d6114a8926b96651e1938ad8dd6464db84339 (diff) | |
download | nixpkgs-2f68e86ce6b6018828bb52098c72aa464d9120ca.tar nixpkgs-2f68e86ce6b6018828bb52098c72aa464d9120ca.tar.gz nixpkgs-2f68e86ce6b6018828bb52098c72aa464d9120ca.tar.bz2 nixpkgs-2f68e86ce6b6018828bb52098c72aa464d9120ca.tar.lz nixpkgs-2f68e86ce6b6018828bb52098c72aa464d9120ca.tar.xz nixpkgs-2f68e86ce6b6018828bb52098c72aa464d9120ca.tar.zst nixpkgs-2f68e86ce6b6018828bb52098c72aa464d9120ca.zip |
zsh: only do promptInit when TERM!=dumb
This allows tramp to be used correctly when default shell is zsh.
Diffstat (limited to 'nixos/modules/programs/zsh/zsh.nix')
-rw-r--r-- | nixos/modules/programs/zsh/zsh.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index f689250dc61..662b463d572 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. |