Customising Mac’s terminal prompt
You can colourise it, if you want.
Open .bash_profile in your editor (I used sublime)
[sourcecode language="bash"]
sublime .bash_profile
[/sourcecode]
Add this line
[sourcecode language="bash"]
export PS1="\u@\h \w "
[/sourcecode]
Each option means
\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)
Comments