Fix condition for showing hostname in prompt

Was using -z instead of -n; inverted condition.
This commit is contained in:
Eryn Wells 2012-10-08 11:11:33 -07:00
parent 2fa6df3d01
commit 0e204b4ddf

2
zshrc
View file

@ -84,7 +84,7 @@ precmd_flags_rprompt()
precmd_assemble_prompt()
{
local p="$PROMPT_NAME "
[[ -z "$SSH_CONNECTION" ]] && p+="on $PROMPT_HOST "
[[ -n "$SSH_CONNECTION" ]] && p+="on $PROMPT_HOST "
p+="at $PROMPT_CWD"
if [[ -n "$PROMPT_REPO" ]]; then
p+=" on $PROMPT_REPO"