From 137cf65e27da3b06b2e5903302126bf5b10d9943 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 15 Mar 2018 11:02:07 +0000 Subject: Show hostname in prompt in ssh --- bash/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/.bashrc') diff --git a/bash/.bashrc b/bash/.bashrc index 387b5d6..9f4e80d 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -1,6 +1,6 @@ # Prompt if [[ -n $SSH_CLIENT ]]; then - PS1=$'\w \e[0;31m$\e[0m ' + PS1=$'\e[0;31m[\h]\e[0m \w $ ' else PS1='\w $ ' fi -- cgit v1.2.3