Bash manual defines a shell as interactive if "$PS1" is set, there's no need to check it against a specific string.
This repository contains bash configuration files which I use on my system.