commit 6d8d38f2a0e9d03fe7e3f1c1d8e6945cbca4ee22
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2022-08-15T13:26:33Z |
| subject | default to username instead |
commit 6d8d38f2a0e9d03fe7e3f1c1d8e6945cbca4ee22
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2022-08-15T13:26:33Z
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 == "<HOSTNAME"">" ]; then
- RHOSTNAME=$( hostname -s )
- RDOMAIN="@"$( hostname -d )
+ RHOSTNAME="\u"
+ RDOMAIN="@"$( hostname -s )
RCOLOR=$(( $RANDOM * 6 / 32767 + 1 ))
fi