#!/bin/bash
#Set Default user's color prompt
# Get the path for the .bashrc file from the prompt or set it as being in the users home dir.
BASHRC="~/.bashrc"
# Use sed to remove the comment from the force color line in the .bashrc file.
sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/g' $BASHRC
# BONUS: Uncomment to change the default color of the prompt.
#sed -i 's/1;32m/1;31m/g'
# Reload the .bashrc file
source BASHRC
#Set Root's color prompt
# Get the path for the .bashrc file from the prompt or set it as being in the users home dir.
BASHRC="root/.bashrc"
# Use sed to remove the comment from the force color line in the .bashrc file.
sudo sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/g' $BASHRC
# BONUS: Uncomment to change the default color of the prompt.
sudo sed -i 's/1;32m/1;31m/g'