about summary refs log tree commit diff
path: root/home/modules/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/modules/shell.nix')
-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
     '';
   };