Type:
nano .bashrc
Type:
export PS1=" "
Between the quotation marks, you can add the following lines to customize your Terminal prompt:
- \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)
export PS1="\u@\h\w$ "
which will look like: Admin@MacBook~Desktop/$ "
type . .bashrc
[source - http://osxdaily.com/2006/12/11/how-to-customize-your-terminal-prompt/]
No comments:
Post a Comment