In terminal, modify the text that comes before $ In terminal I can always see which path I'm in:

macbook-romeo:School romeovs$ echo "example command"


which I find quite useful. Yet there is a lot of unnecessary stuff here too: macbook-romeo is not useful since I'm always on my macbook (duh). Then again romeovs is quite useful (this is my user name).

Is there a wan to edit what is shown here? e.g.

22:50 - School - Romeo$ echo "example"


where 22:50 is the current time? (This is just an example of course, I won't be needing the time, I'd use like the text to be a bit more minimalistic).
This OSX Daily article has some detailed instructions on how to do. In short you need to modify your ~/.bash_profile file and modify the PS1 variable.

Below is a list of possible variables you can have displayed:


\d – Current date
\t – Current time
\h – Host name
# – Command number
\u – User name
\W – Current working directory (ie: Desktop/)
\w – Current working directory, full path (ie: /Users/Admin/Desktop)