Fix condition for showing hostname in prompt
Was using -z instead of -n; inverted condition.
This commit is contained in:
parent
2fa6df3d01
commit
0e204b4ddf
1 changed files with 1 additions and 1 deletions
2
zshrc
2
zshrc
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue