From 6d8d38f2a0e9d03fe7e3f1c1d8e6945cbca4ee22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Mon, 15 Aug 2022 21:26:33 +0800 Subject: [PATCH] default to username instead --- bash/rbashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/rbashrc b/bash/rbashrc index efa83fe..c2e2ac1 100644 --- a/bash/rbashrc +++ b/bash/rbashrc @@ -21,8 +21,8 @@ RDOMAIN="@local" RCOLOR="4" if [ $RHOSTNAME == "" ]; then - RHOSTNAME=$( hostname -s ) - RDOMAIN="@"$( hostname -d ) + RHOSTNAME="\u" + RDOMAIN="@"$( hostname -s ) RCOLOR=$(( $RANDOM * 6 / 32767 + 1 )) fi