To set terminal prompt to show name of current folder use the below command
echo 'export PS1="\W \$: "' >> ~/.bash_profile
PS1 can be configured to show the terminal prompt to show below options
- \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)
No comments:
Post a Comment