hostname on ssh

This commit is contained in:
Loic Nageleisen 2017-01-19 15:10:49 +01:00
parent 5420070eac
commit e17bd46961

View file

@ -55,6 +55,10 @@ function prompt_pwd() {
prompt_build_simple() {
__git_ps1_vars
if [[ -n $SSH_CLIENT ]]; then
echo -n "${HOSTNAME%%.local} "
fi
set_color -p green
prompt_pwd