lass 2 zsh: fix space in prompt
This commit is contained in:
parent
d8867aac26
commit
cdc490e504
@ -103,23 +103,21 @@
|
|||||||
|
|
||||||
case $UID in
|
case $UID in
|
||||||
0)
|
0)
|
||||||
username='%F{red}root%f'
|
username='%F{red}root%f '
|
||||||
;;
|
;;
|
||||||
1337)
|
1337)
|
||||||
username=""
|
username=""
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
username='%F{blue}%n%f'
|
username='%F{blue}%n%f '
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if test -n "$SSH_CLIENT"; then
|
if test -n "$SSH_CLIENT"; then
|
||||||
PROMPT="$error$username@%F{magenta}%M%f %~ "
|
PROMPT="$error$username@%F{magenta}%M%f %~ "
|
||||||
else
|
else
|
||||||
PROMPT="$error$username %~ "
|
PROMPT="$error$username%~ "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
users.defaultUserShell = "/run/current-system/sw/bin/zsh";
|
users.defaultUserShell = "/run/current-system/sw/bin/zsh";
|
||||||
|
Loading…
Reference in New Issue
Block a user