zsh: theme: fix display of hostname for ssh connections

pull/7/head
bretello 2024-01-03 14:40:21 +01:00
parent 94eb4cded8
commit 208057ce91
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function user_prompt(){
local close_bracket='%(!.].)'
local at='%(!.@.)'
if [[ -n $SSH_CONNECTION ]]; then
echo "${open_bracket}${user}${at}${host}${close_bracket}"
echo "[${user}${at}${host}]"
else
echo "${open_bracket}${user}${close_bracket}"
fi