diff options
Diffstat (limited to 'configuration.nix')
-rw-r--r-- | configuration.nix | 7 |
1 files changed, 7 insertions, 0 deletions
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\] " + ''; } |