From e17bd4696117b1c977151c22d3b9860027c0608f Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Thu, 19 Jan 2017 15:10:49 +0100 Subject: [PATCH] hostname on ssh --- bash/prompt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bash/prompt b/bash/prompt index 7024a4c..b262024 100644 --- a/bash/prompt +++ b/bash/prompt @@ -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