Commit be76a47

HPCesia <me@hpcesia.com>
2026-10-06 16:46:24
shell: add prompt separator
1 parent 55cfbd3
Changed files (1)
modules
modules/core/shell.nix
@@ -31,8 +31,11 @@
             if test "$TERM" = "xterm"; then
               PS1="\[\033]2;\h:\u:\w\007\]$PS1"
             fi
-            # Final (transient) prompt: replace the two-line prompt in scrollback.
+            # To separate previous command output
+            PROMPT_RULER="\e[90m─\e[0m"
+
             PS1_FINAL="\[\033[$PROMPT_COLOR\]\u@\h\\$\[\033[0m\] "
+            PROMPT_RULER_FINAL="empty-line"
           fi
         '';
       };