lass 2 zsh: fix space in prompt

This commit is contained in:
lassulus 2015-09-23 15:15:56 +02:00
parent d8867aac26
commit cdc490e504

View File

@ -103,23 +103,21 @@
case $UID in
0)
username='%F{red}root%f'
username='%F{red}root%f '
;;
1337)
username=""
;;
*)
username='%F{blue}%n%f'
username='%F{blue}%n%f '
;;
esac
if test -n "$SSH_CLIENT"; then
PROMPT="$error$username@%F{magenta}%M%f %~ "
else
PROMPT="$error$username %~ "
PROMPT="$error$username%~ "
fi
'';
};
users.defaultUserShell = "/run/current-system/sw/bin/zsh";