Followup to #11

Should fix #12
This commit is contained in:
Sindre Sorhus
2013-09-05 13:21:58 +02:00
parent 65ed8c4465
commit d2229c50a0

View File

@@ -32,9 +32,8 @@
# enable prompt substitution
setopt PROMPT_SUBST
# only show username if not default.
# if SSH_CLIENT or SSH_TTY is defined, it's an ssh session.
if [[ "$SSH_CLIENT" ]] || [[ "$SSH_TTY" ]]; then
# show username@host if logged in through SSH
if [[ -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
local username='%n@%m '
fi