| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
|
Guest
Posts: n/a
|
now, on the terminal mac os x, I don't see colors which are distinguish folders, files, or execute file. different in linux, we are see blue for folders, green for execute files, red for tar files, and etc..
does anyone knows how to enable the colors on the terminal on mac os x, because it seems just has plain, without colors. thank you all... |
| QUOTE Thanks | |
![]() Member Since: Feb 14, 2004
Location: South-East Texas
Posts: 1,803
![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 21in Dual core 3 ghz iMac, 13in Macbook - Mountain Lion on both
|
Put this in your .bashrc:
export CLICOLOR='true' export LSCOLORS="gxfxcxdxbxegedabagacad" if you want to change the colors, man ls for the settings of the LSCOLORS. Craig in Texas ---You did WHAT!? Close the Terminal and step away slowly. |
| QUOTE Thanks | |
![]() Member Since: Feb 14, 2004
Location: South-East Texas
Posts: 1,803
![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 21in Dual core 3 ghz iMac, 13in Macbook - Mountain Lion on both
|
What shell are you using? What version of OS X? Those commands were for bash under 10.3.9.
Craig in Texas ---You did WHAT!? Close the Terminal and step away slowly. |
| QUOTE Thanks | |
![]() Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
![]() Mac Specs: G4 1Ghz OS X 10.4.7
|
|
| QUOTE Thanks | |
![]() Member Since: Feb 14, 2004
Location: South-East Texas
Posts: 1,803
![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 21in Dual core 3 ghz iMac, 13in Macbook - Mountain Lion on both
|
Craig in Texas ---You did WHAT!? Close the Terminal and step away slowly. |
| QUOTE Thanks | |
![]() Member Since: Feb 14, 2004
Location: South-East Texas
Posts: 1,803
![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 21in Dual core 3 ghz iMac, 13in Macbook - Mountain Lion on both
|
Craig in Texas ---You did WHAT!? Close the Terminal and step away slowly. |
| QUOTE Thanks | |
|
Guest
Posts: n/a
|
One of the first answers
Quote:
You indeed have to set the environment CLICOLOR to true, but in the default tcsh you do this differently. You could change the example environment file (this will enable color for ALL users): /usr/share/tcsh/examples/environment and add to it this line: setenv CLICOLOR true |
|
| QUOTE Thanks | ||
![]() Member Since: Feb 14, 2004
Location: South-East Texas
Posts: 1,803
![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 21in Dual core 3 ghz iMac, 13in Macbook - Mountain Lion on both
|
If he did a clean install of Tiger the default should be bash. If indeed he is using tcsh then my example wont work.
Craig in Texas ---You did WHAT!? Close the Terminal and step away slowly. |
| QUOTE Thanks | |
|
Guest
Posts: n/a
|
zero17, I take it that you are using /Applications/Utilities/Terminal and are not seeing different colors of files and folders while using the 'ls' command. This is the way the 'ls' command works in Mac OS X, and as I am aware there is no way to change it to distinguish filetypes with colors.
|
| QUOTE Thanks | |
|
Guest
Posts: n/a
|
Quote:
|
|
| QUOTE Thanks | ||
![]() Member Since: Feb 14, 2004
Location: South-East Texas
Posts: 1,803
![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 21in Dual core 3 ghz iMac, 13in Macbook - Mountain Lion on both
|
Quote:
BTW: I got Tiger now and it works fine, although dark blue on black is hard to read. I need to change that ![]() Are you using bash or tcsh? Also, in preferences for Terminal, do you have Disable ANSI colors checked? Uncheck it. Craig in Texas ---You did WHAT!? Close the Terminal and step away slowly. |
|
| QUOTE Thanks | ||
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| VIM on the terminal | zero17 | OS X - Development and Darwin | 10 | 06-01-2005 11:04 PM |
| Terminal Help | rs2sensen | OS X - Apps and Games | 1 | 04-25-2005 10:52 PM |
| My Terminal is messed up. | leemoreau | Switcher Hangout | 8 | 11-16-2004 02:42 AM |
| Terminal nøøbizm 3 for the price of 1 | Bo Eddy | OS X - Development and Darwin | 5 | 05-04-2004 12:40 PM |
| looking for a terminal emulator and command shell in Mac OSX | CandiMarie | OS X - Operating System | 9 | 03-05-2004 03:53 PM |
All times are GMT -4. The time now is 02:57 AM.
Powered by vBulletin