From af8f4a71ec774899686250449c27508d7957eed2 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 4 Jul 2023 17:07:26 +0530 Subject: configuration: remove the newline from bash prompt --- configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configuration.nix b/configuration.nix index 54fca6d..2d9767a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -68,4 +68,11 @@ in ]; }; system.stateVersion = "23.05"; + programs.bash.promptInit = '' + PROMPT_COLOR="1;31m" + [ "$UID" -ne 0 ] && + PROMPT_COLOR="1;32m" + + PS1="\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] " + ''; } -- cgit v1.2.3