Fix random color

Signed-off-by: Aleksandar 'The Cobra' Widulski <thecobra@riseup.net>
This commit is contained in:
Aleksandar 'The Cobra' Widulski 2022-05-01 02:25:40 -04:00
parent 28d9fa3a02
commit bfa5b94de6
No known key found for this signature in database
GPG Key ID: C8F7E7CA91BCBA64
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ __prompt() {
local TIME="${_YLW}$(__get_cmd_time)"
# Random colored $ or #
_RAND256="\[\033[38;2;$RANDOM;$RANDOM;${RANDOM}m\]"
_RAND256="\[\033[38;2;$((RANDOM%256));$((RANDOM%256));$((RANDOM%256))m\]"
local IND="${_RAND256}\\$"
# Set the prompt