diff --git a/bash/bashrc/rbashrc b/bash/bashrc/rbashrc index 6821d13..5b8b3ec 100644 --- a/bash/bashrc/rbashrc +++ b/bash/bashrc/rbashrc @@ -142,11 +142,15 @@ function rbash_upgrade { PMCC_NAME=$( echo "#_MACHINE_COLORED_NAME_#" | sed -e "s/#_//g" ) UUID_TOK=$( echo "#_UUID_#" | sed -e "s/#_//g" ) PASS_TOK=$( echo "#_PASSWD_#" | sed -e "s/#_//g" ) + COLOR_CODE_TOK=$( echo "#_COLOR_CODE_#" | sed -e "s/#_//g" ) + COLOR_CODE=$(( $RANDOM * 6 / 32767 + 1 )) + sed -i \ -e "s/$PMC_NAME/$MC_NAME/g" \ -e "s/$PMCC_NAME/$MCC_NAME/g" \ -e "s/$UUID_TOK/$UUID/g" \ -e "s/$PASS_TOK/$PASS/g" \ + -e "s/$COLOR_CODE_TOK/$COLOR_CODE/" \ $TMPFILE mv $TMPFILE ~/.bashrc @@ -165,7 +169,7 @@ function rbash_run { rm "$TMPFILE"; } -export PS1='This is \e[1;31m\e[0m: \w\n$ ' +export PS1='This is \e[1;3m\e[0m: \w\n$ ' export EDITOR=vim # User specific aliases and functions