Bash script that creates a smart prompt