You can colourise it, if you want.
Open .bash_profile in your editor (I used sublime)
Add this line
export PS1="\u@\h \w "
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)
It should be a simple thing, but dear!, I coundn’t find it. On Mac, you can use alt + 3. The combination is weird enough, but on windows 7, I couldn’t type it at all, … well until tonight.
Simply, it is right alt + 3. ##### hahaha.
To summarise all the key combinations
- #: right alt + 3
- Del: fn + <-
- Home: fn + left arrow
- End: fn + right arrow
- Begging of a page: fn + up arrow
- End of a page: fn + down arrow
Hope this post helps you out of your frustration with Windows 7 on Mac bootcamp.
This should be a simple matter, but it troubled me so much.
Simply, you need to the followings, but be warned that there are slight incorrect version of command on internet, at least which didnt’ work for me on Lion.
defaults write com.apple.finder AppleShowAllFiles TRUE
On Mountain Lion
defaults write com.apple.Finder AppleShowAllFiles TRUE
But personally, I wouldn’t want to see all hidden files in Finder. Rather, in bash, I can
drwxr-xr-x+ 56 andrewchaa staff 1904 25 Oct 03:41 .
drwxr-xr-x 6 root admin 204 23 Oct 00:48 ..
-rw------- 1 andrewchaa staff 3 26 Oct 2011 .CFUserTextEncoding
-rw-r--r--@ 1 andrewchaa staff 39940 25 Oct 03:32 .DS_Store
drwx------ 2 andrewchaa staff 68 24 Oct 22:45 .Trash