default to username instead

This commit is contained in:
斟酌 鵬兄 2022-08-15 21:26:33 +08:00
parent 3aefa2bb5c
commit 6d8d38f2a0

View File

@ -21,8 +21,8 @@ RDOMAIN="@local"
RCOLOR="4" RCOLOR="4"
if [ $RHOSTNAME == "<HOSTNAME"">" ]; then if [ $RHOSTNAME == "<HOSTNAME"">" ]; then
RHOSTNAME=$( hostname -s ) RHOSTNAME="\u"
RDOMAIN="@"$( hostname -d ) RDOMAIN="@"$( hostname -s )
RCOLOR=$(( $RANDOM * 6 / 32767 + 1 )) RCOLOR=$(( $RANDOM * 6 / 32767 + 1 ))
fi fi