In terminal, modify the text that comes before $
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)