Terminal Help

Joined
Mar 14, 2005
Messages
443
Reaction score
3
Points
18
Location
Atlanta, GA
Your Mac's Specs
17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM
I have searched the threads on terminal color changing and I am just getting frustrated because nothing is working. I also searched google a bit.

I found this link

http://blog.kung-foo.tv/archives/000335.html

I tried this set of commands

$ mv ~/termcap-vt100-color ~/.termcap
$ mkdir ~/.terminfo
$ setenv TERMINFO "$HOME/.terminfo"
-bash: setenv: command not found
$

What does this mean?

For some reason when I log into Linux systems I have all different colors for folders, media, system files, text files etc. but in terminal it seems there can only be two different colors controlled by "bold text" and "normal text"

I wan to be able to actually tell the difference between files in the terminal window by their colors.

Can this be done?
 
OP
jdgti
Joined
Mar 14, 2005
Messages
443
Reaction score
3
Points
18
Location
Atlanta, GA
Your Mac's Specs
17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Your Mac's Specs
21in. iMac 10.11 --- HP Linux Mint 18
If you read the page, it's for tcsh. It seems you are using bash, and it wont work as described.

If you want color, put this in your .bashrc file:


export CLICOLOR='true'
export LSCOLORS="gxfxcxdxbxegedabagacad"


The second command isn't really necessary, I just changed some colors to make it more readable for me.
 
Joined
Apr 29, 2006
Messages
4,560
Reaction score
366
Points
83
Location
St. Somewhere
Your Mac's Specs
iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
An alternative is to establish the following alias in your .bash_profile or .bashrc file:

alias ls="ls -FG"

The "G" enables color and the "F" adds slashes for directories, which is a nice touch too.
 
OP
jdgti
Joined
Mar 14, 2005
Messages
443
Reaction score
3
Points
18
Location
Atlanta, GA
Your Mac's Specs
17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM
An alternative is to establish the following alias in your .bash_profile or .bashrc file:

alias ls="ls -FG"

The "G" enables color and the "F" adds slashes for directories, which is a nice touch too.

This just added the the slashes... still no color...
 
OP
jdgti
Joined
Mar 14, 2005
Messages
443
Reaction score
3
Points
18
Location
Atlanta, GA
Your Mac's Specs
17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM
yeah, i have been searching, and no luck. i have installed several things that say they work. i must be doing something fundamentally wrong if all these things work. what is everyone's settings on terminal when these flags work?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top