In Mac OS X terminal, to customize the terminal prompt, edit the .bash_profile file to include the following line
export PS1=""
Following options are common:
\d - current date - e.g. 11/09/2010 \w - full path to current working directory - e.g. ~/Users/Raj/Documents \W - current working directory - e.g. Documents \u - username -e.g. Admin
I use the following for my prompt:
export PS1="[\W$ ]"
You can use any editor to edit the .bash_profile file. This file is located in your home directory (~)
Leave a comment