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:
parent
94eb4cded8
commit
208057ce91
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user