1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-23 20:11:31 +01:00

zsh: theme: fix display of hostname for ssh connections

This commit is contained in:
bretello 2024-01-03 14:40:21 +01:00
parent 94eb4cded8
commit 208057ce91
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

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