Show Full Path in Terminal
Opern Iterm, duh!
Go to you home direct
Type:
cd ~
Type:
mate .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/$ "
mate is text mate you need to install it in mac to make it work or you can also use free editors like nano, vi/vim.
Source: soniajahid
Comments
Note that nowadays (2015, on Mac OS Yosemite), the way to do it is by modifying ~/.bash_profile rather than ~/.bashrc .
THANKS A BUNCH, YOU GROOVY GUY!
>g.