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 close_bracket='%(!.].)'
|
||||||
local at='%(!.@.)'
|
local at='%(!.@.)'
|
||||||
if [[ -n $SSH_CONNECTION ]]; then
|
if [[ -n $SSH_CONNECTION ]]; then
|
||||||
echo "${open_bracket}${user}${at}${host}${close_bracket}"
|
echo "[${user}${at}${host}]"
|
||||||
else
|
else
|
||||||
echo "${open_bracket}${user}${close_bracket}"
|
echo "${open_bracket}${user}${close_bracket}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user