Properly show hostname on ssh connection

This commit is contained in:
Dreaded_X 2018-06-27 19:19:58 +00:00
parent cec0f5db85
commit ca14315786

View File

@ -74,7 +74,7 @@ prompt_context() {
local user=`whoami` local user=`whoami`
if [[ -n "$SSH_CONNECTION" ]]; then if [[ -n "$SSH_CONNECTION" ]]; then
prompt_segment $PRIMARY_FG default " %(!.%{%F{yellow}%}.)$user@m " prompt_segment $PRIMARY_FG default " %(!.%{%F{yellow}%}.)$user@%m"
else else
prompt_segment $PRIMARY_FG default " %(!.%{%F{yellow}%}.)$user " prompt_segment $PRIMARY_FG default " %(!.%{%F{yellow}%}.)$user "
fi fi