Color ls on OpenBSD
To get color ls output on OpenBSD, get a recent version of ports and then do the following:
- cd /usr/ports/sysutils/colorls
- make install
- set your TERM to wsvt25
- /usr/local/bin/colorls -G should now display similar to the GNU ls with the color option
- Set the appropriate alias for your shell.
Comments
how to set my TERM to wsvt25
I am new user in OpenBSD
export TERM=wsvt25
Hello;
Thanks for the quick info.
I am also new to BSD so would setting ports interfere with anything else? This is our main server and I dont want to change anything.
I use ls --color in ubuntu to get color ls but BSD does not have that option.
Also I can edit my .bashrc file and change it where the color ls shows up every time I log in. Is there a similar file under OpenBSD as well?
Thanks very much for your help!
Regards;
Thanks for the info! I was looking in ports and i also found, /usr/ports/misc/fileutils, thats supposed to do the same thing. I don't know what the difference is.
Smee again, colorls seems better. The fileutils one needs quite a few dependencies to be installed.