fix: wrong bash prompt

This commit is contained in:
Ahurac 2024-10-01 19:55:50 +02:00
parent 38afd3274f
commit c53e7f1519

View file

@ -9,12 +9,12 @@
programs.bash.promptInit = '' programs.bash.promptInit = ''
if [ "$(whoami)" = root ]; then if [ "$(whoami)" = root ]; then
color=35 color=31
else else
color=32 color=35
user='\u@' user='\u@'
fi fi
PS1="\[\033[0m\](\[\033[1;''${color}m\]''${user}\h\[\033[0m\] \[\033[1;34m\]\W\[\033[0m\])\\$ " PS1="\[\033[0m\][\[\033[1;''${color}m\]''${user}\h\[\033[0m\] \[\033[1;34m\]\W\[\033[0m\]]\\$ "
''; '';
system.stateVersion = "24.05"; system.stateVersion = "24.05";