I love color feature in terminal when I use Linux so that I can distinguish which file type it is, such as folder, file, image. However, in Mac system, its terminal seems not set that by default. I tried to enter ls --color=always
like I use in Linux, but it does not work in a Mac. Today, I found a solution online: Mac OS X Tiger: Bash Colors
System: Mac OS X 10.4
- Modify
/etc/bashrc
- Add two lines in the file:
export CLICOLOR=1
export TERM=xterm-color - Close Terminal, and re-open the terminal.
- Color feature works in Mac terminal now!
1 comment:
`ls -G` seems to do the same for me on OSX 10.5
Post a Comment