fix: wrong bash prompt
This commit is contained in:
parent
38afd3274f
commit
c53e7f1519
1 changed files with 3 additions and 3 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue