Comment by bjourne
That is basically what Oh My Zsh does for zsh: https://ohmyz.sh/ Even if you don't use zsh you can look at the source code and adapt the prompts for the shell you are using.
That is basically what Oh My Zsh does for zsh: https://ohmyz.sh/ Even if you don't use zsh you can look at the source code and adapt the prompts for the shell you are using.