Color ls on OpenBSD

To get color ls output on OpenBSD, get a recent version of ports and then do the following:

  1. cd /usr/ports/sysutils/colorls
  2. make install
  3. set your TERM to wsvt25
  4. /usr/local/bin/colorls -G should now display similar to the GNU ls with the color option
  5. Set the appropriate alias for your shell.

  • jake
    Smee again, colorls seems better. The fileutils one needs quite a few dependencies to be installed.
  • jake
    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.
  • 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;
  • export TERM=wsvt25
  • how to set my TERM to wsvt25
    I am new user in OpenBSD
blog comments powered by Disqus