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 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";