about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--home/modules/shell.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/home/modules/shell.nix b/home/modules/shell.nix
index be084793f377..69672473af23 100644
--- a/home/modules/shell.nix
+++ b/home/modules/shell.nix
@@ -207,7 +207,14 @@ in {
       autoload -U promptinit; promptinit
       prompt pure
 
-      [[ ! $IN_NIX_SHELL ]] && alsi -l
+      if [[ "$TERM" == "dumb" ]]; then
+        unsetopt zle
+        unsetopt prompt_cr
+        unsetopt prompt_subst
+        unfunction precmd
+        unfunction preexec
+        export PS1='$ '
+      fi
     '';
   };