From 67a182e1c9a76b0890dca8fa7447021eb7384b32 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 28 Feb 2026 20:25:51 +0100 Subject: Use yellow colour on hostname if logged in remotely MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- bash/bashrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bash/bashrc') diff --git a/bash/bashrc b/bash/bashrc index 26a319a..f3c31e5 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -62,3 +62,9 @@ elif test "$TERM" = xterm; then export TERM=xterm-256color fi featherweight-off + + +# Use yellow colour on hostname if logged in remotely +if printenv | grep -q '^SSH_\(CONNECTION\|CLIENT\|TTY\)'; then + hostname-colour 33 +fi -- cgit v1.2.3-70-g09d2