Here’s how to restore or set the Bash prompt on RHEL systems.

echo "PS1='\u@\h \w]\$'" >> ~/.bashrc
source ~/.bashrc