Is \u the only way to output the user from .bashrc?
With the release of macOS Catalina (10.15) Apple has switched to Zsh as default shell (instead of Bash).
Instead of setting PS1 in Bash you can set PROMPT in Zsh:
PROMPT="${orange}%n"