Results 1 to 4 of 4
Hi I am reletively new at BSD and I figured out how to change to a bash shell but how do I make it color? I mean the text is ...
- 01-18-2006 #1
color in shell
Hi I am reletively new at BSD and I figured out how to change to a bash shell but how do I make it color? I mean the text is all black now and when I type ls I want the programs to be colored like green for exe and blue for directory that type stuff.
ThanksSome people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
- 01-19-2006 #2Linux Enthusiast
- Join Date
- Aug 2005
- Location
- Hell
- Posts
- 514
Try aliasing ls to "ls --color=tty" or something like that. You can put a line like this in your .bashrc
Code:alias ls="ls --color=tty"
- 01-19-2006 #3Linux Engineer
- Join Date
- Aug 2004
- Posts
- 826
I may be wrong, but I think "ls --color" only works on Linux. On FreeBSD, the equivalent would be "ls -G". Check the manual page for ls to be sure.
Originally Posted by spoon!
- 01-19-2006 #4Linux Engineer
- Join Date
- Nov 2004
- Location
- Ft. Polk, LA
- Posts
- 796
It's the ls from coreutils that has the --color switch, if you install(ed) coreutils then it will be called gls. I always preferred that one over the default fbsd one.


Reply With Quote
